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

    Class OrchestrationStreamChunkResponse

    Orchestration stream chunk response.

    Index

    Constructors

    Properties

    _data: CompletionPostResponseStreaming

    Methods

    • Parses the chunk response and returns the choice by index.

      Parameters

      • index: number

        The index of the choice to find.

      Returns LlmChoiceStreaming | undefined

      An LLMChoiceStreaming object associated with the index.

    • Parses the chunk response and returns the delta content.

      Parameters

      • OptionalchoiceIndex: number

        The index of the choice to parse.

      Returns string | undefined

      The message delta content.

    • Gets the delta tool calls for a specific choice index.

      Parameters

      • OptionalchoiceIndex: number

        The index of the choice to parse.

      Returns ToolCallChunk[] | undefined

      The delta tool calls for the specified choice index.

    • Reason for stopping the completion stream chunk.

      Parameters

      • OptionalchoiceIndex: number

        The index of the choice to parse.

      Returns string | undefined

      The finish reason.

    • Gets the intermediate results from the chunk.

      Returns ModuleResultsStreaming | undefined

      The intermediate results.

    • Usage of tokens in the chunk response.

      Returns TokenUsage | undefined

      Token usage.

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