Package com.sap.ai.sdk.orchestration
Class OrchestrationClient.LowLevelChatCompletionExecutor
java.lang.Object
com.sap.ai.sdk.orchestration.OrchestrationClient.LowLevelChatCompletionExecutor
- Enclosing class:
OrchestrationClient
Client to execute a custom low-level chat completion request.
-
Method Summary
Modifier and TypeMethodDescriptionexecute()Execute the request and return the low-level response.Execute the request with text streaming.Execute the request with detailed streaming deltas.
-
Method Details
-
execute
Execute the request and return the low-level response.- Returns:
- the response data object from orchestration.
- Throws:
OrchestrationClientException- if the request fails.
-
executeStream
Execute the request with text streaming.The caller must close the returned stream.
- Returns:
- a stream of message text deltas.
- Throws:
OrchestrationClientException- if the request fails or the output is filtered.
-
executeStreamDeltas
@Nonnull public Stream<OrchestrationChatCompletionDelta> executeStreamDeltas() throws OrchestrationClientExceptionExecute the request with detailed streaming deltas.Streaming is enabled on a copy of the supplied request. The caller must close the returned stream. Content-filter finish reasons are available in the deltas rather than converted to exceptions.
- Returns:
- a stream of chat completion deltas.
- Throws:
OrchestrationClientException- if the request fails.
-