API Reference
MCPAgent
MCPAgent API Documentation
MCPAgent API Reference
astream
Asynchronous streaming interface for agent output. Yields incremental results, tool actions, and intermediate steps as they are generated by the agent.
Example:
Each chunk is a dictionary containing keys such as actions
, steps
, messages
, and (on the last chunk) output
.