# Class OrchestrationStreamChunkResponse

Orchestration stream chunk response.

- Defined in packages/orchestration/dist/orchestration-stream-chunk-response.d.ts:5

##### Index

### Constructors

constructor

### Properties

_data

### Methods

findChoiceByIndex
getCitations
getDeltaContent
getDeltaToolCalls
getFinishReason
getIntermediateResults
getTokenUsage

## Constructors

### constructor

- new OrchestrationStreamChunkResponse(
  _data: CompletionPostResponseStreaming,
  ): OrchestrationStreamChunkResponse

  #### Parameters

  - _data: CompletionPostResponseStreaming

  #### Returns OrchestrationStreamChunkResponse

  - Defined in packages/orchestration/dist/orchestration-stream-chunk-response.d.ts:7

## Properties

### `Readonly`_data

_data: CompletionPostResponseStreaming

- Defined in packages/orchestration/dist/orchestration-stream-chunk-response.d.ts:6

## Methods

### findChoiceByIndex

- findChoiceByIndex(index: number): LlmChoiceStreaming | undefined

  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.

  - Defined in packages/orchestration/dist/orchestration-stream-chunk-response.d.ts:47

### getCitations

- getCitations(): Citation[] | undefined

  Gets the citations from the chunk response. Citations are returned by models like Perplexity Sonar that provide source references.

  #### Returns Citation[] | undefined

  The citations, or undefined if there are none.

  - Defined in packages/orchestration/dist/orchestration-stream-chunk-response.d.ts:41

### getDeltaContent

- getDeltaContent(choiceIndex?: number): string | undefined

  Parses the chunk response and returns the delta content.

  #### Parameters

  - `Optional` choiceIndex: number

    The index of the choice to parse.

  #### Returns string | undefined

  The message delta content.

  - Defined in packages/orchestration/dist/orchestration-stream-chunk-response.d.ts:30

### getDeltaToolCalls

- getDeltaToolCalls(choiceIndex?: number): ToolCallChunk[] | undefined

  Gets the delta tool calls for a specific choice index.

  #### Parameters

  - `Optional` choiceIndex: number

    The index of the choice to parse.

  #### Returns ToolCallChunk[] | undefined

  The delta tool calls for the specified choice index.

  - Defined in packages/orchestration/dist/orchestration-stream-chunk-response.d.ts:24

### getFinishReason

- getFinishReason(choiceIndex?: number): string | undefined

  Reason for stopping the completion stream chunk.

  #### Parameters

  - `Optional` choiceIndex: number

    The index of the choice to parse.

  #### Returns string | undefined

  The finish reason.

  - Defined in packages/orchestration/dist/orchestration-stream-chunk-response.d.ts:18

### getIntermediateResults

- getIntermediateResults(): ModuleResultsStreaming | undefined

  Gets the intermediate results from the chunk.

  #### Returns ModuleResultsStreaming | undefined

  The intermediate results.

  - Defined in packages/orchestration/dist/orchestration-stream-chunk-response.d.ts:35

### getTokenUsage

- getTokenUsage(): TokenUsage | undefined

  Usage of tokens in the chunk response.

  #### Returns TokenUsage | undefined

  Token usage.

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

  - Defined in packages/orchestration/dist/orchestration-stream-chunk-response.d.ts:12