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.

Diagram

Input Data

Agent: stream_agent

Output Result

Signature

python
async def stream_agent(agent_config: Dict[str, Any], prompt: str) -> Any

Parameters

ParamField Dict[str, Any]

Agent configuration dict

ParamField str

User prompt to process **kwargs: Additional execution parameters Streaming response chunks

Returns

ResponseField Any

The result of the operation.

Source

View on GitHub

praisonaiagents/runtime/protocols.py at line 270


Related Documentation