Claude
A Model backed by Anthropic's Claude models through the official Anthropic Java SDK.
Supports streaming, tool calling, extended thinking, image and PDF input, structured output, and prompt caching. Thinking needs ThinkingConfig.thinkingBudget and ignores thinkingLevel.
Parameters
The Anthropic SDK client that sends the requests; the caller owns and closes it.
The default max_tokens (8192), used when the request config sets none.
How much reasoning effort Claude spends on each request; null leaves the model's default. While effort or thinking is on, temperature, topP, and topK are not sent.
Constructors
Creates a Claude model that calls the Anthropic API directly. The SDK client it creates is closed when the model is garbage collected; pass your own AnthropicClient to close it sooner.
Creates a Claude model served through Vertex AI. The SDK client it creates is closed when the model is garbage collected; pass your own AnthropicClient to close it sooner.