Builder

class Builder

Fluent builder for Claude, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

构造函数(Constructors)

Link copied to clipboard
constructor()

函数

Link copied to clipboard
Link copied to clipboard
fun build(): Claude

构建(Builds the) Claude 如果未设置客户端或 Vertex AI 的凭据,系统会默认使用 Anthropic API 来处理相关请求。

Link copied to clipboard

用于设置 SDK 客户端;最多只能设置其中一个选项。 apiKey,以及 vertexCredentials.

Link copied to clipboard
Link copied to clipboard
fun maxTokens(maxTokens: Int): Claude.Builder
Link copied to clipboard
Link copied to clipboard