> ## 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 a prompt response as text chunks.

# stream

AsyncMethod

> This is a method of the [**ManagedBackendProtocol**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/ManagedBackendProtocol.md) class in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

Stream a prompt response as text chunks.

Yields text fragments as the managed agent produces them.
Used when Agent is invoked with stream=True.

## Signature

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

## Parameters

**prompt** `str` *required*

The user message. \*\*kwargs: Provider-specific options. Text chunks from the agent's response.

### Returns

**Returns** `AsyncIterator[str]`

The result of the operation.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/protocols.py#L382)
>
> `praisonaiagents/agent/protocols.py` at line 382


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.