Class BedrockChatOptions
java.lang.Object
org.springframework.ai.bedrock.converse.BedrockChatOptions
- All Implemented Interfaces:
org.springframework.ai.chat.prompt.ChatOptions,org.springframework.ai.model.ModelOptions,org.springframework.ai.model.tool.ToolCallingChatOptions
public class BedrockChatOptions
extends Object
implements org.springframework.ai.model.tool.ToolCallingChatOptions
The options to be used when sending a chat request to the Bedrock API.
- Author:
- Sun Yuhan
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.springframework.ai.model.tool.ToolCallingChatOptions
DEFAULT_TOOL_EXECUTION_ENABLED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BedrockChatOptions.Builderbuilder()copy()booleanstatic BedrockChatOptionsfromOptions(BedrockChatOptions fromOptions) getModel()List<org.springframework.ai.tool.ToolCallback>getTopK()getTopP()inthashCode()voidsetFrequencyPenalty(Double frequencyPenalty) voidsetInternalToolExecutionEnabled(Boolean internalToolExecutionEnabled) voidsetMaxTokens(Integer maxTokens) voidvoidsetPresencePenalty(Double presencePenalty) voidsetStopSequences(List<String> stopSequences) voidsetTemperature(Double temperature) voidsetToolCallbacks(List<org.springframework.ai.tool.ToolCallback> toolCallbacks) voidsetToolContext(Map<String, Object> toolContext) voidsetToolNames(Set<String> toolNames) voidvoid
-
Constructor Details
-
BedrockChatOptions
public BedrockChatOptions()
-
-
Method Details
-
builder
-
fromOptions
-
getModel
- Specified by:
getModelin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setModel
-
getFrequencyPenalty
- Specified by:
getFrequencyPenaltyin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setFrequencyPenalty
-
getMaxTokens
- Specified by:
getMaxTokensin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setMaxTokens
-
getPresencePenalty
- Specified by:
getPresencePenaltyin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setPresencePenalty
-
getStopSequences
- Specified by:
getStopSequencesin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setStopSequences
-
getTemperature
- Specified by:
getTemperaturein interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setTemperature
-
getTopK
- Specified by:
getTopKin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setTopK
-
getTopP
- Specified by:
getTopPin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
setTopP
-
getToolCallbacks
- Specified by:
getToolCallbacksin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
setToolCallbacks
- Specified by:
setToolCallbacksin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
getToolNames
- Specified by:
getToolNamesin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
setToolNames
- Specified by:
setToolNamesin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
getToolContext
- Specified by:
getToolContextin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
setToolContext
- Specified by:
setToolContextin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
getInternalToolExecutionEnabled
- Specified by:
getInternalToolExecutionEnabledin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
setInternalToolExecutionEnabled
- Specified by:
setInternalToolExecutionEnabledin interfaceorg.springframework.ai.model.tool.ToolCallingChatOptions
-
copy
- Specified by:
copyin interfaceorg.springframework.ai.chat.prompt.ChatOptions
-
equals
-
hashCode
public int hashCode()
-