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()

Functions

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

Builds the Claude model, calling the Anthropic API unless a client or Vertex AI credentials are set.

Link copied to clipboard

Sets the SDK client; set at most one of this, apiKey, and vertexCredentials.

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