stream • AI Agent SDK

stream: Stream response deltas from CLI backend.

stream

Async

Method

</div>

This is a method of the CliBackendProtocol class in the protocols module.

Stream response deltas from CLI backend.

Signature

python
async def stream(prompt: str) -> AsyncIterator[CliBackendDelta]

Parameters

ParamField str

User prompt/query **kwargs: Additional options (session, images, etc.) CliBackendDelta objects with incremental response content

Returns

ResponseField AsyncIterator[CliBackendDelta]

The result of the operation.

Source

View on GitHub

praisonaiagents/cli_backend/protocols.py at line 137