MessageCreateParams
Parameters for creating a message with Anthropic's Claude models. Based on the structure of com.anthropic.models.messages.MessageCreateParams
Constructors
Types
Content of a message. Can be a simple string or a list of content blocks.
A content block in a multi-modal message.
List of content blocks for multi-modal messages.
Image content block.
Source information for an image.
Message object for Claude API.
Metadata about the request.
System prompt for Claude. A system prompt is a way of providing context and instructions to Claude, such as specifying a particular goal or role.
Text content block.
Text content for a message.
Properties
The maximum number of tokens to generate before stopping.
Input messages.
An object describing metadata about the request.
The model that will complete your prompt. See the models page for a list of available models.
System prompt. A system prompt is a way of providing context and instructions to Claude, such as specifying a particular goal or role.
Amount of randomness injected into the response. Defaults to 1.0. Ranges from 0.0 to 1.0. Use temperature closer to 0.0 for analytical / multiple choice, and closer to 1.0 for creative and generative tasks.
Only sample from the top K options for each subsequent token. Used to remove "long tail" low probability responses. Defaults to -1, which disables it.
Use nucleus sampling. 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. Defaults to -1.0, which disables it.