Function processRequestWithExternalTools

  • Runs a full AgentOS.processRequest(...) turn and automatically resumes any actionable external tool pauses through handleToolResult(...).

    Actionable external tool calls are executed in emitted order. When a pause contains multiple actionable tool calls, the helper batches their results and resumes the stream once through handleToolResults(...) when available.

    Parameters

    Returns AsyncGenerator<AgentOSResponse, void, undefined>