# Class SseStream<Item>

Stream implemented as an async iterable.

#### Type Parameters

- Item

#### Hierarchy (View Summary)

- SseStream
  - AzureOpenAiChatCompletionStream
  - OrchestrationStream

#### Implements

- AsyncIterable<Item>

- Defined in packages/core/dist/stream/sse-stream.d.ts:6

##### Index

### Constructors

constructor

### Properties

controller
iterator

### Methods

[asyncIterator]
transformToSseStream

Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.

## Constructors

### constructor

- new SseStream<Item>(
  iterator: () => AsyncIterator<Item>,
  controller: AbortController,
  ): SseStream<Item>

  #### Type Parameters

  - Item

  #### Parameters

  - iterator: () => AsyncIterator<Item>
  - controller: AbortController

  #### Returns SseStream<Item>

  - Defined in packages/core/dist/stream/sse-stream.d.ts:10

## Properties

### controller

controller: AbortController

- Defined in packages/core/dist/stream/sse-stream.d.ts:9

### iterator

iterator: () => AsyncIterator<Item>

- Defined in packages/core/dist/stream/sse-stream.d.ts:7

## Methods

### [asyncIterator]

- "[asyncIterator]"(): AsyncIterator<Item>

  #### Returns AsyncIterator<Item>

  Implementation of AsyncIterable.[asyncIterator]

  - Defined in packages/core/dist/stream/sse-stream.d.ts:11

### `Protected` `Static` transformToSseStream

- transformToSseStream<Item>(
  response: HttpResponse,
  controller: AbortController,
  ): SseStream<Item>

  #### Type Parameters

  - Item

  #### Parameters

  - response: HttpResponse
  - controller: AbortController

  #### Returns SseStream<Item>

  - Defined in packages/core/dist/stream/sse-stream.d.ts:8