Stream Turn • AI Agent SDK
stream_turn: Stream response deltas from runtime execution.
stream_turn
Async
Method
</div>
This is a method of the AgentRuntimeProtocol class in the protocols module.
Stream response deltas from runtime execution.
Signature
async def stream_turn(prompt: str) -> AsyncIterator[RuntimeDelta]Parameters
ParamField
strUser prompt/query **kwargs: Additional options (system_prompt, model_ref, etc.) RuntimeDelta objects with incremental response content
Returns
ResponseField
AsyncIterator[RuntimeDelta]The result of the operation.
Source
View on GitHubpraisonaiagents/runtime/protocols.py at line 235