Package com.sap.ai.sdk.orchestration
Class OrchestrationChatCompletionDelta
java.lang.Object
com.sap.ai.sdk.orchestration.model.CompletionPostResponseStreaming
com.sap.ai.sdk.orchestration.OrchestrationChatCompletionDelta
- All Implemented Interfaces:
StreamedDelta
public class OrchestrationChatCompletionDelta
extends CompletionPostResponseStreaming
implements StreamedDelta
Orchestration chat completion output delta for streaming.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sap.ai.sdk.orchestration.model.CompletionPostResponseStreaming
CompletionPostResponseStreaming.Builder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the message content from the delta.Reason for finish.Methods inherited from class com.sap.ai.sdk.orchestration.model.CompletionPostResponseStreaming
addIntermediateFailuresItem, create, equals, finalResult, getCustomField, getCustomFieldNames, getFinalResult, getIntermediateFailures, getIntermediateResults, getRequestId, hashCode, intermediateFailures, intermediateResults, requestId, setCustomField, setFinalResult, setIntermediateFailures, setIntermediateResults, setRequestId, toMap, toString
-
Constructor Details
-
OrchestrationChatCompletionDelta
public OrchestrationChatCompletionDelta()
-
-
Method Details
-
getDeltaContent
Description copied from interface:StreamedDeltaGet the message content from the delta.Note: If there are multiple choices only the first one is returned
Note: Some deltas do not contain any content
- Specified by:
getDeltaContentin interfaceStreamedDelta- Returns:
- the message content or empty string.
-
getFinishReason
Description copied from interface:StreamedDeltaReason for finish. The possible values are:stop: API returned complete message, or a message terminated by one of the stop sequences provided via the stop parameterlength: Incomplete model output due to max_tokens parameter or token limitfunction_call: The model decided to call a functioncontent_filter: Omitted content due to a flag from our content filtersnull: API response still in progress or incomplete- Specified by:
getFinishReasonin interfaceStreamedDelta- Returns:
- the finish reason or null.
-