Package com.sap.ai.sdk.orchestration
Class OrchestrationClient.ChatCompletionWithConfig
java.lang.Object
com.sap.ai.sdk.orchestration.OrchestrationClient.ChatCompletionWithConfig
- Enclosing class:
OrchestrationClient
Intermediate builder to select a prompt template for a local orchestration configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionChatCompletionWithConfig(OrchestrationModuleConfig config, OrchestrationModuleConfig[] fallbackConfigs) -
Method Summary
Modifier and TypeMethodDescriptionpromptTemplate(PromptTemplate template) Set the prompt template for the chat completion.
-
Constructor Details
-
ChatCompletionWithConfig
public ChatCompletionWithConfig(OrchestrationModuleConfig config, OrchestrationModuleConfig[] fallbackConfigs)
-
-
Method Details
-
promptTemplate
@Nonnull public OrchestrationClient.ChatCompletionExecutor promptTemplate(@Nonnull PromptTemplate template) Set the prompt template for the chat completion.- Parameters:
template- the local prompt template or prompt template reference.- Returns:
- a client to execute the configured chat completion.
-