SAP AI SDK for JavaScript - v2.8.0
    Preparing search index...

    Class AzureOpenAiChatCompletionStreamResponse<T>

    Azure OpenAI chat completion stream response.

    Type Parameters

    • T
    Index

    Constructors

    Accessors

    Methods

    • Internal

      Returns Map<
          number,
          | "stop"
          | "length"
          | "tool_calls"
          | "content_filter"
          | "function_call"
          | null,
      >

    • Internal

      Returns Map<number, Map<number, ToolCallAccumulator>>

    • Internal

      Parameters

      • finishReasons: Map<
            number,
            | "stop"
            | "length"
            | "tool_calls"
            | "content_filter"
            | "function_call"
            | null,
        >

      Returns void

    • Internal

      Parameters

      • usage: AzureOpenAiCompletionUsage

      Returns void

    • Internal

      Parameters

      • choiceIndex: number
      • toolCalls: AzureOpenAiChatCompletionMessageToolCalls

      Returns void

    • Parameters

      • OptionalchoiceIndex: number

      Returns
          | "stop"
          | "length"
          | "tool_calls"
          | "content_filter"
          | "function_call"
          | null
          | undefined

    • Returns AzureOpenAiCompletionUsage | undefined

    • Gets the tool calls for a specific choice index.

      Parameters

      • OptionalchoiceIndex: number

        The index of the choice to get the tool calls for.

      Returns AzureOpenAiChatCompletionMessageToolCalls | undefined

      The tool calls for the specified choice index.

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