Module text_agent_tool

Module text_agent_tool 

Source
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§

TextAgentTool
Wraps a TextAgent as a ToolFunction for live session tool dispatch.