> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# stream • AI Agent SDK

> stream: Stream response deltas from CLI backend.

# stream

<div className="flex items-center gap-2">
  <Badge color="blue">Async</Badge>
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**CliBackendProtocol**](../classes/CliBackendProtocol) class in the [**protocols**](../modules/protocols) module.

Stream response deltas from CLI backend.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def stream(prompt: str) -> AsyncIterator[CliBackendDelta]
```

## Parameters

<ParamField query="prompt" type="str" required={true}>
  User prompt/query \*\*kwargs: Additional options (session, images, etc.) CliBackendDelta objects with incremental response content
</ParamField>

### Returns

<ResponseField name="Returns" type="AsyncIterator[CliBackendDelta]">
  The result of the operation.
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/cli_backend/protocols.py#L137">
  `praisonaiagents/cli_backend/protocols.py` at line 137
</Card>
