Class AnthropicApi.ChatCompletionRequestBuilder
java.lang.Object
org.springframework.ai.anthropic.api.AnthropicApi.ChatCompletionRequestBuilder
- Enclosing class:
- AnthropicApi
-
Method Summary
Modifier and TypeMethodDescriptionbuild()messages(List<AnthropicApi.AnthropicMessage> messages) model(AnthropicApi.ChatModel model) stopSequences(List<String> stopSequences) temperature(Double temperature) thinking(AnthropicApi.ThinkingType type, Integer budgetTokens) toolChoice(AnthropicApi.ToolChoice toolChoice) tools(List<AnthropicApi.Tool> tools)
-
Method Details
-
model
-
model
-
messages
public AnthropicApi.ChatCompletionRequestBuilder messages(List<AnthropicApi.AnthropicMessage> messages) -
system
-
maxTokens
-
metadata
public AnthropicApi.ChatCompletionRequestBuilder metadata(AnthropicApi.ChatCompletionRequest.Metadata metadata) -
stopSequences
-
stream
-
temperature
-
topP
-
topK
-
tools
-
toolChoice
-
thinking
public AnthropicApi.ChatCompletionRequestBuilder thinking(AnthropicApi.ChatCompletionRequest.ThinkingConfig thinking) -
thinking
public AnthropicApi.ChatCompletionRequestBuilder thinking(AnthropicApi.ThinkingType type, Integer budgetTokens) -
build
-