Class OrchestrationChatOptions
java.lang.Object
com.sap.ai.sdk.orchestration.spring.OrchestrationChatOptions
- All Implemented Interfaces:
org.springframework.ai.chat.prompt.ChatOptions,org.springframework.ai.model.ModelOptions,org.springframework.ai.model.tool.ToolCallingChatOptions
public class OrchestrationChatOptions
extends Object
implements org.springframework.ai.model.tool.ToolCallingChatOptions
Configuration to be used for orchestration requests.
- Since:
- 1.2.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder that preservesOrchestrationChatOptionsthrough the Spring AI advisor chain. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanReturns the config with any tool callbacks converted and injected into the template.Returns the frequency penalty to use for the chat.Returns the maximum number of tokens to use for the chat.getModel()Returns the model to use for the chat.Returns the model version to use for the chat.Returns the presence penalty to use for the chat.Returns the stop sequences to use for the chat.Returns the temperature to use for the chat.List<org.springframework.ai.tool.ToolCallback> getTopK()Returns the top K to use for the chat.getTopP()Returns the top P to use for the chat.inthashCode()mutate()toString()
-
Constructor Details
-
OrchestrationChatOptions
-
-
Method Details
-
getModel
Returns the model to use for the chat.- Specified by:
getModelin interfaceorg.springframework.ai.chat.prompt.ChatOptions- Returns:
- the model to use for the chat.
- See Also:
-
getModelVersion
Returns the model version to use for the chat. "latest" by default.- Returns:
- the model version to use for the chat.
-
getFrequencyPenalty
Returns the frequency penalty to use for the chat.- Specified by:
getFrequencyPenaltyin interfaceorg.springframework.ai.chat.prompt.ChatOptions- Returns:
- the frequency penalty to use for the chat.
-
getMaxTokens
Returns the maximum number of tokens to use for the chat.- Specified by:
getMaxTokensin interfaceorg.springframework.ai.chat.prompt.ChatOptions- Returns:
- the maximum number of tokens to use for the chat.
-
getPresencePenalty
Returns the presence penalty to use for the chat.- Specified by:
getPresencePenaltyin interfaceorg.springframework.ai.chat.prompt.ChatOptions- Returns:
- the presence penalty to use for the chat.
-
getStopSequences
Returns the stop sequences to use for the chat.- Specified by:
getStopSequencesin interfaceorg.springframework.ai.chat.prompt.ChatOptions- Returns:
- the stop sequences to use for the chat.
-
getTemperature
Returns the temperature to use for the chat.- Specified by:
getTemperaturein interfaceorg.springframework.ai.chat.prompt.ChatOptions- Returns:
- the temperature to use for the chat.
-
getTopK
Returns the top K to use for the chat.- Specified by:
getTopKin interfaceorg.springframework.ai.chat.prompt.ChatOptions- Returns:
- the top K to use for the chat.
-
getTopP
Returns the top P to use for the chat.- Specified by:
getTopPin interfaceorg.springframework.ai.chat.prompt.ChatOptions- Returns:
- the top P to use for the chat.
-
mutate
- Specified by:
mutatein interfaceorg.springframework.ai.chat.prompt.ChatOptions- Specified by:
mutatein interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
getConfigWithCallbacks
Returns the config with any tool callbacks converted and injected into the template.- Returns:
- the config enriched with tool definitions from
getToolCallbacks()
-
getConfig
-
getFallbackConfigs
-
getToolCallbacks
- Specified by:
getToolCallbacksin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
getToolNames
-
getToolContext
- Specified by:
getToolContextin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-