AnthropicParams
Anthropic Messages API parameters layered on top of LLMParams.
Constructors
Properties
when automatic cache control provided, AnthropicCacheControl is added at the request top level and the API automatically applies the cache breakpoint to the last cacheable block. This is the recommended approach for multi-turn conversations where you don't need fine-grained control over breakpoint positions.
MCP servers to be used in this request
Determines whether to use priority capacity (if available) or standard capacity for this request.
Custom text sequences that cause the model to stop generating. If matched, response will have stop_reason of "stop_sequence".
Configuration for enabling Claude's extended thinking.
Nucleus sampling in (0.0, 1.0]; use instead of temperature. Cuts off token sampling at a cumulative probability threshold.
Functions
Creates a copy of this instance with the ability to modify any of its properties.