Package org.springframework.ai.anthropic
Class AnthropicChatOptions.Builder
java.lang.Object
org.springframework.ai.anthropic.AnthropicChatOptions.Builder
- Enclosing class:
- AnthropicChatOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
functionCallbacks
(List<FunctionCallback> functionCallbacks) model
(AnthropicApi.ChatModel model) proxyToolCalls
(Boolean proxyToolCalls) stopSequences
(List<String> stopSequences) temperature
(Double temperature) toolContext
(Map<String, Object> toolContext) withFunction
(String functionName) Deprecated, for removal: This API element is subject to removal in a future version.withFunctionCallbacks
(List<FunctionCallback> functionCallbacks) Deprecated, for removal: This API element is subject to removal in a future version.usefunctionCallbacks(List)
instead.withFunctions
(Set<String> functionNames) Deprecated, for removal: This API element is subject to removal in a future version.usefunctions(Set)
instead.withMaxTokens
(Integer maxTokens) Deprecated, for removal: This API element is subject to removal in a future version.usemaxTokens(Integer)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usemetadata(ChatCompletionRequest.Metadata)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead.withModel
(AnthropicApi.ChatModel model) Deprecated, for removal: This API element is subject to removal in a future version.usemodel(AnthropicApi.ChatModel)
instead.withProxyToolCalls
(Boolean proxyToolCalls) Deprecated, for removal: This API element is subject to removal in a future version.useproxyToolCalls(Boolean)
instead.withStopSequences
(List<String> stopSequences) Deprecated, for removal: This API element is subject to removal in a future version.usestopSequences(List)
instead.withTemperature
(Double temperature) Deprecated, for removal: This API element is subject to removal in a future version.usetemperature(Double)
instead.withToolContext
(Map<String, Object> toolContext) Deprecated, for removal: This API element is subject to removal in a future version.usetoolContext(Map)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usetopK(Integer)
instead.Deprecated, for removal: This API element is subject to removal in a future version.usetopP(Double)
instead.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
model
-
model
-
maxTokens
-
metadata
-
stopSequences
-
temperature
-
topP
-
topK
-
functionCallbacks
-
functions
-
function
-
proxyToolCalls
-
toolContext
-
withModel
@Deprecated(forRemoval=true, since="1.0.0-M5") public AnthropicChatOptions.Builder withModel(String model) Deprecated, for removal: This API element is subject to removal in a future version.usemodel(String)
instead. -
withModel
@Deprecated(forRemoval=true, since="1.0.0-M5") public AnthropicChatOptions.Builder withModel(AnthropicApi.ChatModel model) Deprecated, for removal: This API element is subject to removal in a future version.usemodel(AnthropicApi.ChatModel)
instead. -
withMaxTokens
@Deprecated(forRemoval=true, since="1.0.0-M5") public AnthropicChatOptions.Builder withMaxTokens(Integer maxTokens) Deprecated, for removal: This API element is subject to removal in a future version.usemaxTokens(Integer)
instead. -
withMetadata
@Deprecated(forRemoval=true, since="1.0.0-M5") public AnthropicChatOptions.Builder withMetadata(AnthropicApi.ChatCompletionRequest.Metadata metadata) Deprecated, for removal: This API element is subject to removal in a future version.usemetadata(ChatCompletionRequest.Metadata)
instead. -
withStopSequences
@Deprecated(forRemoval=true, since="1.0.0-M5") public AnthropicChatOptions.Builder withStopSequences(List<String> stopSequences) Deprecated, for removal: This API element is subject to removal in a future version.usestopSequences(List)
instead. -
withTemperature
@Deprecated(forRemoval=true, since="1.0.0-M5") public AnthropicChatOptions.Builder withTemperature(Double temperature) Deprecated, for removal: This API element is subject to removal in a future version.usetemperature(Double)
instead. -
withTopP
@Deprecated(forRemoval=true, since="1.0.0-M5") public AnthropicChatOptions.Builder withTopP(Double topP) Deprecated, for removal: This API element is subject to removal in a future version.usetopP(Double)
instead. -
withTopK
@Deprecated(forRemoval=true, since="1.0.0-M5") public AnthropicChatOptions.Builder withTopK(Integer topK) Deprecated, for removal: This API element is subject to removal in a future version.usetopK(Integer)
instead. -
withFunctionCallbacks
@Deprecated(forRemoval=true, since="1.0.0-M5") public AnthropicChatOptions.Builder withFunctionCallbacks(List<FunctionCallback> functionCallbacks) Deprecated, for removal: This API element is subject to removal in a future version.usefunctionCallbacks(List)
instead. -
withFunctions
@Deprecated(forRemoval=true, since="1.0.0-M5") public AnthropicChatOptions.Builder withFunctions(Set<String> functionNames) Deprecated, for removal: This API element is subject to removal in a future version.usefunctions(Set)
instead. -
withFunction
@Deprecated(forRemoval=true, since="1.0.0-M5") public AnthropicChatOptions.Builder withFunction(String functionName) Deprecated, for removal: This API element is subject to removal in a future version.usefunction(String)
instead. -
withProxyToolCalls
@Deprecated(forRemoval=true, since="1.0.0-M5") public AnthropicChatOptions.Builder withProxyToolCalls(Boolean proxyToolCalls) Deprecated, for removal: This API element is subject to removal in a future version.useproxyToolCalls(Boolean)
instead. -
withToolContext
@Deprecated(forRemoval=true, since="1.0.0-M5") public AnthropicChatOptions.Builder withToolContext(Map<String, Object> toolContext) Deprecated, for removal: This API element is subject to removal in a future version.usetoolContext(Map)
instead. -
build
-
function(String)
instead.