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
async def stream(prompt: str) -> AsyncIterator[CliBackendDelta]Parameters
ParamField
strUser 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 GitHubpraisonaiagents/cli_backend/protocols.py at line 137