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)
创建一个 Claude 该模型可以直接调用 Anthropic API。它生成的 SDK 客户端会在模型被垃圾回收(即被销毁)时也随之被关闭;因此,请使用您自己提供的 SDK 客户端。 AnthropicClient 为了更快地完成它(或:为了更快地关闭它)。
创建一个 Claude 该模型是通过 Vertex AI 提供的。当模型被垃圾回收(即被系统销毁)时,由该模型生成的 SDK 客户端也会被关闭;因此,请使用您自己提供的客户端来与模型进行交互。 AnthropicClient 为了更快地完成它(或:为了更快地关闭它)。