Skip to content

ToolResult

ToolResult = SubmitIntentToolResult | UIStructuralSnapshot | CapabilitySnapshot

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

Everything an adapter can receive at RealtimeProviderAdapter.sendToolResult: either the dual-field SubmitIntentToolResult from submit_intent, 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 SubmitIntentToolResult, so adapters discriminate on it.