Record Class Anthropic3ChatBedrockApi.AnthropicChatRequest

java.lang.Object
java.lang.Record
org.springframework.ai.bedrock.anthropic3.api.Anthropic3ChatBedrockApi.AnthropicChatRequest
Record Components:
messages - A list of messages comprising the conversation so far.
system - A system prompt, providing context and instructions to Claude, such as specifying a particular goal or role.
temperature - (default 0.5) The temperature to use for the chat. You should either alter temperature or top_p, but not both.
maxTokens - (default 200) Specify the maximum number of tokens to use in the generated response. Note that the models may stop before reaching this maximum. This parameter only specifies the absolute maximum number of tokens to generate. We recommend a limit of 4,000 tokens for optimal performance.
topK - (default 250) Specify the number of token choices the model uses to generate the next token.
topP - (default 1) Nucleus sampling to specify the cumulative probability of the next token in range [0,1]. In nucleus sampling, we compute the cumulative distribution over all the options for each subsequent token in decreasing probability order and cut it off once it reaches a particular probability specified by top_p. You should either alter temperature or top_p, but not both.
stopSequences - (defaults to "\n\nHuman:") Configure up to four sequences that the model recognizes. After a stop sequence, the model stops generating further tokens. The returned text doesn't contain the stop sequence.
anthropicVersion - The version of the model to use. The default value is bedrock-2023-05-31.
Enclosing class:
Anthropic3ChatBedrockApi

public static record Anthropic3ChatBedrockApi.AnthropicChatRequest(List<Anthropic3ChatBedrockApi.ChatCompletionMessage> messages, String system, Double temperature, Integer maxTokens, Integer topK, Double topP, List<String> stopSequences, String anthropicVersion) extends Record
AnthropicChatRequest encapsulates the request parameters for the Anthropic messages model. https://docs.anthropic.com/claude/reference/messages_post