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

# Streaming

> Use Averta with supported OpenAI streaming calls.

Streaming changes response delivery. It does not remove the need for request, tool, tool-result, and output checks.

## Supported Streaming Calls

The OpenAI wrappers support these streaming paths:

* `client.responses.create({ stream: true, ... })`
* `client.responses.stream(...)`
* `client.chat.completions.create({ stream: true, ... })`

In Python, use the native OpenAI Python call shape:

* `client.responses.create(stream=True, ...)`
* `client.responses.stream(...)`
* `client.chat.completions.create(stream=True, ...)`

## Before the Stream Opens

Before opening the provider stream, Averta can:

* evaluate the request
* filter blocked tools
* evaluate pending tool results in continuation calls

If the request or tool result is blocked, the wrapper throws before the provider stream starts.

## During the Stream

The wrapper checks streamed text as it is produced.

If the output is allowed, your app consumes the provider stream normally. If policy blocks streamed content, the wrapper fails closed instead of continuing to emit unsafe text.

## Rewrite Limit

Streaming output rewrite is not supported yet. A rewrite decision during streaming is treated as a failure.

Use non-streaming calls when you need Averta to rewrite final output.

## Current Limits

| Surface                    | Limit                                |
| -------------------------- | ------------------------------------ |
| Responses streaming        | One output text stream per response. |
| Chat Completions streaming | One streamed text choice.            |
| Output rewrite             | Non-streaming only.                  |

## Debugging

| Symptom                                  | Likely cause                                                                         |
| ---------------------------------------- | ------------------------------------------------------------------------------------ |
| Stream never opens                       | Request, tool exposure, or tool-result checkpoint blocked before provider execution. |
| Chat stream fails with multiple choices  | Streaming with `n > 1` is unsupported.                                               |
| Stream stops when output policy triggers | Streaming rewrite is unsupported, so the wrapper fails closed.                       |

## Related Pages

<CardGroup cols={2}>
  <Card title="Responses API" icon="message" href="/openai/responses-api">
    See Responses streaming entry points.
  </Card>

  <Card title="Output checks" icon="file-check" href="/openai/output-checks">
    Use non-streaming calls for rewrite behavior.
  </Card>
</CardGroup>
