Creates an orchestration stream response.
The raw HTTP response from the orchestration service. SSE data is not part of the immediate response.
Parses the response and returns the choice by index.
The index of the choice to find.
An LLMChoice object associated with the index.
Messages that can be used for subsequent prompts as message history.
OptionalchoiceIndex: numberThe index of the choice to parse.
A list of all messages.
Gets the assistant message from the response.
OptionalchoiceIndex: numberThe index of the choice to use (default is 0).
The assistant message.
Parses the orchestration response and returns the content. If the response was filtered, an error is thrown.
OptionalchoiceIndex: numberThe index of the choice to parse.
The message content.
Gets the finish reason for a specific choice index.
OptionalchoiceIndex: numberThe index of the choice to get the finish reason for.
The finish reason for the specified choice index.
Gets the intermediate failures from the orchestration response. When using module fallback, this contains errors from module configurations that failed before a successful one was found.
The intermediate failures, or undefined if there were none.
Gets the intermediate results from the orchestration response.
The intermediate results.
Parses the orchestration response and returns the refusal message generated by the model.
OptionalchoiceIndex: numberThe index of the choice to parse.
The refusal string.
Gets the request ID for the stream response.
The request ID, or undefined if the first chunk has not been received yet.
Gets the token usage for the response.
The token usage for the response.
Parses the orchestration response and returns the tool calls generated by the model.
OptionalchoiceIndex: numberThe index of the choice to parse.
The message tool calls.
Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.
Orchestration stream response.