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

python
async def stream_turn(prompt: str) -> AsyncIterator[RuntimeDelta]

Parameters

ParamField str

User 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 GitHub

praisonaiagents/runtime/protocols.py at line 235