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 classes/interfaces inherited from interface org.springframework.ai.model.tool.ToolCallingChatOptions
org.springframework.ai.model.tool.ToolCallingChatOptions.Builder -
Field Summary
Fields inherited from interface org.springframework.ai.model.tool.ToolCallingChatOptions
DEFAULT_TOOL_EXECUTION_ENABLED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean<T extends org.springframework.ai.chat.prompt.ChatOptions>
Tcopy()Returns a copy of thisOrchestrationChatOptions.booleanReturns 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()voidsetConfig(OrchestrationModuleConfig config) voidsetInternalToolExecutionEnabled(Boolean internalToolExecutionEnabled) voidsetToolCallbacks(List<org.springframework.ai.tool.ToolCallback> toolCallbacks) voidsetToolContext(Map<String, Object> toolContext) voidsetToolNames(Set<String> toolNames) 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
-
copy
@Nonnull public <T extends org.springframework.ai.chat.prompt.ChatOptions> T copy()Returns a copy of thisOrchestrationChatOptions.- Specified by:
copyin interfaceorg.springframework.ai.chat.prompt.ChatOptions- Returns:
- a copy of this
OrchestrationChatOptions
-
setToolCallbacks
- Specified by:
setToolCallbacksin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
getInternalToolExecutionEnabled
- Specified by:
getInternalToolExecutionEnabledin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
getConfig
-
getToolCallbacks
- Specified by:
getToolCallbacksin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
getToolNames
- Specified by:
getToolNamesin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
getToolContext
- Specified by:
getToolContextin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
setConfig
-
setInternalToolExecutionEnabled
- Specified by:
setInternalToolExecutionEnabledin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
setToolNames
- Specified by:
setToolNamesin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
setToolContext
- Specified by:
setToolContextin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-