Class AnthropicApi.ChatCompletionRequestBuilder
java.lang.Object
org.springframework.ai.anthropic.api.AnthropicApi.ChatCompletionRequestBuilder
- Enclosing class:
- AnthropicApi
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
withMaxTokens
(Integer maxTokens) withMessages
(List<AnthropicApi.AnthropicMessage> messages) withModel
(AnthropicApi.ChatModel model) withStopSequences
(List<String> stopSequences) withStream
(Boolean stream) withSystem
(String system) withTemperature
(Double temperature) withTools
(List<AnthropicApi.Tool> tools)
-
Method Details
-
withModel
-
withModel
-
withMessages
public AnthropicApi.ChatCompletionRequestBuilder withMessages(List<AnthropicApi.AnthropicMessage> messages) -
withSystem
-
withMaxTokens
-
withMetadata
public AnthropicApi.ChatCompletionRequestBuilder withMetadata(AnthropicApi.ChatCompletionRequest.Metadata metadata) -
withStopSequences
-
withStream
-
withTemperature
-
withTopP
-
withTopK
-
withTools
-
build
-