Skip to content

ToolResult

ToolResult = UpdateUIToolResult | UIStructuralSnapshot | CapabilitySnapshot

Defined in: packages/realtime/src/lib/realtime-session/provider-adapter.types.ts:174

Everything an adapter can receive at RealtimeProviderAdapter.sendToolResult: either the dual-field UpdateUIToolResult from update_ui, or a raw snapshot from the read-only get_ui_state / get_capabilities pulls (which a speech-native model reads as JSON, and a speaking adapter serializes rather than voicing). The ok field is present only on UpdateUIToolResult, so adapters discriminate on it.