Class AnthropicChatProperties.Options
java.lang.Object
org.springframework.ai.model.anthropic.autoconfigure.AnthropicChatProperties.Options
- Enclosing class:
- AnthropicChatProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable AnthropicCachePropertiesDeprecated, for removal: This API element is subject to removal in a future version.@Nullable BooleanDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.@Nullable StringDeprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegerDeprecated, for removal: This API element is subject to removal in a future version.@Nullable com.anthropic.models.messages.MetadataDeprecated, for removal: This API element is subject to removal in a future version.@Nullable StringgetModel()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable com.anthropic.models.messages.OutputConfigDeprecated, for removal: This API element is subject to removal in a future version.@Nullable AnthropicServiceTierDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.@Nullable DoubleDeprecated, for removal: This API element is subject to removal in a future version.@Nullable com.anthropic.models.messages.ThinkingConfigParamDeprecated, for removal: This API element is subject to removal in a future version.@Nullable com.anthropic.models.messages.ToolChoiceDeprecated, for removal: This API element is subject to removal in a future version.@Nullable IntegergetTopK()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable DoublegetTopP()Deprecated, for removal: This API element is subject to removal in a future version.@Nullable AnthropicWebSearchToolDeprecated, for removal: This API element is subject to removal in a future version.voidsetCacheOptions(@Nullable AnthropicCacheProperties cacheOptions) voidsetDisableParallelToolUse(@Nullable Boolean disableParallelToolUse) voidsetHttpHeaders(Map<String, String> httpHeaders) voidsetInferenceGeo(@Nullable String inferenceGeo) voidsetMaxTokens(@Nullable Integer maxTokens) voidsetMetadata(@Nullable com.anthropic.models.messages.Metadata metadata) voidvoidsetOutputConfig(@Nullable com.anthropic.models.messages.OutputConfig outputConfig) voidsetServiceTier(@Nullable AnthropicServiceTier serviceTier) voidsetStopSequences(@Nullable List<String> stopSequences) voidsetTemperature(@Nullable Double temperature) voidsetThinking(@Nullable com.anthropic.models.messages.ThinkingConfigParam thinking) voidsetToolChoice(@Nullable com.anthropic.models.messages.ToolChoice toolChoice) voidvoidvoidsetWebSearchTool(@Nullable AnthropicWebSearchTool webSearchTool)
-
Constructor Details
-
Options
public Options()
-
-
Method Details
-
getModel
@DeprecatedConfigurationProperty(replacement="spring.ai.anthropic.chat.model") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable String getModel()Deprecated, for removal: This API element is subject to removal in a future version. -
setModel
-
getMaxTokens
@DeprecatedConfigurationProperty(replacement="spring.ai.anthropic.chat.max-tokens") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getMaxTokens()Deprecated, for removal: This API element is subject to removal in a future version. -
setMaxTokens
-
getMetadata
@DeprecatedConfigurationProperty(replacement="spring.ai.anthropic.chat.metadata") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable com.anthropic.models.messages.Metadata getMetadata()Deprecated, for removal: This API element is subject to removal in a future version. -
setMetadata
public void setMetadata(@Nullable com.anthropic.models.messages.Metadata metadata) -
getStopSequences
@DeprecatedConfigurationProperty(replacement="spring.ai.anthropic.chat.stop-sequences") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable List<String> getStopSequences()Deprecated, for removal: This API element is subject to removal in a future version. -
setStopSequences
-
getTemperature
@DeprecatedConfigurationProperty(replacement="spring.ai.anthropic.chat.temperature") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Double getTemperature()Deprecated, for removal: This API element is subject to removal in a future version. -
setTemperature
-
getTopP
@DeprecatedConfigurationProperty(replacement="spring.ai.anthropic.chat.top-p") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Double getTopP()Deprecated, for removal: This API element is subject to removal in a future version. -
setTopP
-
getTopK
@DeprecatedConfigurationProperty(replacement="spring.ai.anthropic.chat.top-k") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Integer getTopK()Deprecated, for removal: This API element is subject to removal in a future version. -
setTopK
-
getToolChoice
@DeprecatedConfigurationProperty(replacement="spring.ai.anthropic.chat.tool-choice") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable com.anthropic.models.messages.ToolChoice getToolChoice()Deprecated, for removal: This API element is subject to removal in a future version. -
setToolChoice
public void setToolChoice(@Nullable com.anthropic.models.messages.ToolChoice toolChoice) -
getThinking
@DeprecatedConfigurationProperty(replacement="spring.ai.anthropic.chat.thinking") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable com.anthropic.models.messages.ThinkingConfigParam getThinking()Deprecated, for removal: This API element is subject to removal in a future version. -
setThinking
public void setThinking(@Nullable com.anthropic.models.messages.ThinkingConfigParam thinking) -
getDisableParallelToolUse
@DeprecatedConfigurationProperty(replacement="spring.ai.anthropic.chat.disable-parallel-tool-use") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable Boolean getDisableParallelToolUse()Deprecated, for removal: This API element is subject to removal in a future version. -
setDisableParallelToolUse
-
getOutputConfig
@DeprecatedConfigurationProperty(replacement="spring.ai.anthropic.chat.output-config") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable com.anthropic.models.messages.OutputConfig getOutputConfig()Deprecated, for removal: This API element is subject to removal in a future version. -
setOutputConfig
public void setOutputConfig(@Nullable com.anthropic.models.messages.OutputConfig outputConfig) -
getWebSearchTool
@DeprecatedConfigurationProperty(replacement="spring.ai.anthropic.chat.web-search-tool") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable AnthropicWebSearchTool getWebSearchTool()Deprecated, for removal: This API element is subject to removal in a future version. -
setWebSearchTool
-
getServiceTier
@DeprecatedConfigurationProperty(replacement="spring.ai.anthropic.chat.service-tier") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable AnthropicServiceTier getServiceTier()Deprecated, for removal: This API element is subject to removal in a future version. -
setServiceTier
-
getInferenceGeo
@DeprecatedConfigurationProperty(replacement="spring.ai.anthropic.chat.inference-geo") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable String getInferenceGeo()Deprecated, for removal: This API element is subject to removal in a future version. -
setInferenceGeo
-
getCacheOptions
@DeprecatedConfigurationProperty(replacement="spring.ai.anthropic.chat.cache-options") @Deprecated(since="2.0.0", forRemoval=true) public @Nullable AnthropicCacheProperties getCacheOptions()Deprecated, for removal: This API element is subject to removal in a future version. -
setCacheOptions
-
getHttpHeaders
@DeprecatedConfigurationProperty(replacement="spring.ai.anthropic.chat.http-headers") @Deprecated(since="2.0.0", forRemoval=true) public Map<String,String> getHttpHeaders()Deprecated, for removal: This API element is subject to removal in a future version. -
setHttpHeaders
-