Package com.sap.ai.sdk.orchestration
Class OrchestrationClient.ChatCompletionBuilder
java.lang.Object
com.sap.ai.sdk.orchestration.OrchestrationClient.ChatCompletionBuilder
- Enclosing class:
OrchestrationClient
Builder to select a local or referenced orchestration configuration for a chat completion.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfig(OrchestrationModuleConfig config, OrchestrationModuleConfig... fallbackConfigs) Configure the chat completion using a local orchestration configuration.configReference(OrchestrationConfigReference configReference) Configure the chat completion using a stored orchestration configuration.lowLevel()Select the low-level API for a custom completion request.
-
Constructor Details
-
ChatCompletionBuilder
public ChatCompletionBuilder()
-
-
Method Details
-
lowLevel
Select the low-level API for a custom completion request.- Returns:
- a builder to supply the low-level request.
-
config
@Nonnull public OrchestrationClient.ChatCompletionWithConfig config(@Nonnull OrchestrationModuleConfig config, @Nonnull OrchestrationModuleConfig... fallbackConfigs) Configure the chat completion using a local orchestration configuration.- Parameters:
config- the primary orchestration configuration.fallbackConfigs- fallback configurations to use.- Returns:
- a builder to select the prompt template.
-
configReference
@Nonnull public OrchestrationClient.ChatCompletionExecutor configReference(@Nonnull OrchestrationConfigReference configReference) Configure the chat completion using a stored orchestration configuration.- Parameters:
configReference- the reference to the stored orchestration configuration.- Returns:
- a client to execute the configured chat completion.
-