Skip to content

SubmitIntentToolResult

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

Result of a settled submit_intent tool call, as RealtimeSession hands it to RealtimeProviderAdapter.sendToolResult. Both speak-worthy fields are carried separately rather than pre-collapsed to one string, because each transport phrases the reply differently: a speech-native provider (OpenAI) posts the whole object and lets its own model choose the wording from both, while a cascaded TTS provider (LiveKit) has no model and speaks userMessage ?? summary verbatim.

Keeping the fields typed here is the point of the type: renaming one is a compile error in every adapter that reads it, never a silent empty utterance.

readonly ok: boolean

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

Whether the intent applied. false carries a user-facing summary explaining why (bad request, render failure, still busy). On the agent message path it reports that the agent run ended successfully, and the run’s UI changes may still be applying.


readonly optional summary?: string

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

Structural description derived from the post-render snapshot, or a fixed sentence when an agent run ended without a reply. The fallback an adapter speaks when there is no userMessage. Absent only when an agent run’s reply is the whole answer.


readonly optional userMessage?: string

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

The engine LLM’s own conversational reply, already phrased for speech. Preferred over summary when present; absent (or empty/whitespace) when the engine produced no reply.