# Function fromArray

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

- fromArray<T>(
  values: T[],
  options?: { delayMs?: number; signal?: AbortSignal },
  ): AsyncIterable<T>

  Creates a stream from an array of values.

  #### Type Parameters

  - T

  #### Parameters

  - values: T[]

    The values to stream

  - options: { delayMs?: number; signal?: AbortSignal } = {}

    Options including optional delay between chunks

  #### Returns AsyncIterable<T>

  Stream of values

  - Defined in packages/nexus-agents/src/adapters/stream-operators-helpers.ts:95