# Function createStream

Adapters exports - Model adapters (Claude, OpenAI, Gemini, Ollama) Split from index.ts for file size compliance (Issue #285)

- createStream<T>(
  options?: CreateStreamOptions,
  ): [StreamController<T>, AsyncIterable<T, any, any>]

  Creates a controllable stream.

  #### Type Parameters

  - T

  #### Parameters

  - options: CreateStreamOptions = {}

    Stream creation options

  #### Returns [StreamController<T>, AsyncIterable<T, any, any>]

  Tuple of [controller, iterable]

  - Defined in packages/nexus-agents/src/adapters/streaming-types.ts:255