Expand description
TextAgentTool — wraps a TextAgent as a ToolFunction for voice orchestration.
When the live model calls this tool, the wrapped TextAgent runs via
BaseLlm::generate() (request/response), not over a WebSocket. The agent’s
text output is returned as the tool result. State is shared with the parent
session, so mutations are visible to watchers and phase transitions.
This bridges live↔text: the voice model dispatches complex multi-step reasoning to specialist text agent pipelines.
Structs§
- Text
Agent Tool - Wraps a
TextAgentas aToolFunctionfor live session tool dispatch.