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()
withFunction
(String functionName) withFunctionCallbacks
(List<FunctionCallback> functionCallbacks) withFunctions
(Set<String> functionNames) withMaxTokens
(Integer maxTokens) withModel
(AnthropicApi.ChatModel model) withProxyToolCalls
(Boolean proxyToolCalls) withStopSequences
(List<String> stopSequences) withTemperature
(Double temperature) withToolContext
(Map<String, Object> toolContext)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withModel
-
withModel
-
withMaxTokens
-
withMetadata
public AnthropicChatOptions.Builder withMetadata(AnthropicApi.ChatCompletionRequest.Metadata metadata) -
withStopSequences
-
withTemperature
-
withTopP
-
withTopK
-
withFunctionCallbacks
-
withFunctions
-
withFunction
-
withProxyToolCalls
-
withToolContext
-
build
-