> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-7021d5f4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# StreamEvents - Python SDK

> StreamEvents method reference

<Warning>
  The Python SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/python-sdk/issues).
</Warning>

Union of all possible event types emitted during response streaming

## Supported Types

### `components.ErrorEvent`

```python lines theme={null}
value: components.ErrorEvent = /* values here */
```

### `components.ApplyPatchCallOperationDiffDeltaEvent`

```python lines theme={null}
value: components.ApplyPatchCallOperationDiffDeltaEvent = /* values here */
```

### `components.ApplyPatchCallOperationDiffDoneEvent`

```python lines theme={null}
value: components.ApplyPatchCallOperationDiffDoneEvent = /* values here */
```

### `components.StreamEventsResponseCompleted`

```python lines theme={null}
value: components.StreamEventsResponseCompleted = /* values here */
```

### `components.ContentPartAddedEvent`

```python lines theme={null}
value: components.ContentPartAddedEvent = /* values here */
```

### `components.ContentPartDoneEvent`

```python lines theme={null}
value: components.ContentPartDoneEvent = /* values here */
```

### `components.OpenResponsesCreatedEvent`

```python lines theme={null}
value: components.OpenResponsesCreatedEvent = /* values here */
```

### `components.CustomToolCallInputDeltaEvent`

```python lines theme={null}
value: components.CustomToolCallInputDeltaEvent = /* values here */
```

### `components.CustomToolCallInputDoneEvent`

```python lines theme={null}
value: components.CustomToolCallInputDoneEvent = /* values here */
```

### `components.StreamEventsResponseFailed`

```python lines theme={null}
value: components.StreamEventsResponseFailed = /* values here */
```

### `components.FunctionCallArgsDeltaEvent`

```python lines theme={null}
value: components.FunctionCallArgsDeltaEvent = /* values here */
```

### `components.FunctionCallArgsDoneEvent`

```python lines theme={null}
value: components.FunctionCallArgsDoneEvent = /* values here */
```

### `components.ImageGenCallCompletedEvent`

```python lines theme={null}
value: components.ImageGenCallCompletedEvent = /* values here */
```

### `components.ImageGenCallGeneratingEvent`

```python lines theme={null}
value: components.ImageGenCallGeneratingEvent = /* values here */
```

### `components.ImageGenCallInProgressEvent`

```python lines theme={null}
value: components.ImageGenCallInProgressEvent = /* values here */
```

### `components.ImageGenCallPartialImageEvent`

```python lines theme={null}
value: components.ImageGenCallPartialImageEvent = /* values here */
```

### `components.OpenResponsesInProgressEvent`

```python lines theme={null}
value: components.OpenResponsesInProgressEvent = /* values here */
```

### `components.StreamEventsResponseIncomplete`

```python lines theme={null}
value: components.StreamEventsResponseIncomplete = /* values here */
```

### `components.StreamEventsResponseOutputItemAdded`

```python lines theme={null}
value: components.StreamEventsResponseOutputItemAdded = /* values here */
```

### `components.StreamEventsResponseOutputItemDone`

```python lines theme={null}
value: components.StreamEventsResponseOutputItemDone = /* values here */
```

### `components.AnnotationAddedEvent`

```python lines theme={null}
value: components.AnnotationAddedEvent = /* values here */
```

### `components.TextDeltaEvent`

```python lines theme={null}
value: components.TextDeltaEvent = /* values here */
```

### `components.TextDoneEvent`

```python lines theme={null}
value: components.TextDoneEvent = /* values here */
```

### `components.ReasoningSummaryPartAddedEvent`

```python lines theme={null}
value: components.ReasoningSummaryPartAddedEvent = /* values here */
```

### `components.ReasoningSummaryPartDoneEvent`

```python lines theme={null}
value: components.ReasoningSummaryPartDoneEvent = /* values here */
```

### `components.ReasoningSummaryTextDeltaEvent`

```python lines theme={null}
value: components.ReasoningSummaryTextDeltaEvent = /* values here */
```

### `components.ReasoningSummaryTextDoneEvent`

```python lines theme={null}
value: components.ReasoningSummaryTextDoneEvent = /* values here */
```

### `components.ReasoningDeltaEvent`

```python lines theme={null}
value: components.ReasoningDeltaEvent = /* values here */
```

### `components.ReasoningDoneEvent`

```python lines theme={null}
value: components.ReasoningDoneEvent = /* values here */
```

### `components.RefusalDeltaEvent`

```python lines theme={null}
value: components.RefusalDeltaEvent = /* values here */
```

### `components.RefusalDoneEvent`

```python lines theme={null}
value: components.RefusalDoneEvent = /* values here */
```

### `components.WebSearchCallCompletedEvent`

```python lines theme={null}
value: components.WebSearchCallCompletedEvent = /* values here */
```

### `components.WebSearchCallInProgressEvent`

```python lines theme={null}
value: components.WebSearchCallInProgressEvent = /* values here */
```

### `components.WebSearchCallSearchingEvent`

```python lines theme={null}
value: components.WebSearchCallSearchingEvent = /* values here */
```
