Stream Agent • AI Agent SDK
stream_agent: Execute agent with streaming responses.
stream_agent
Async
Method
</div>
This is a method of the AgentRuntimeProtocol class in the protocols module.
Execute agent with streaming responses.
Only required if runtime declares streaming_deltas capability.
Signature
async def stream_agent(agent_config: Dict[str, Any], prompt: str) -> AnyParameters
ParamField
Dict[str, Any]Agent configuration dict
ParamField
strUser prompt to process **kwargs: Additional execution parameters Streaming response chunks
Returns
ResponseField
AnyThe result of the operation.
Source
View on GitHubpraisonaiagents/runtime/protocols.py at line 270