Documentation
¶
Overview ¶
Package anthropic provides an llm.Provider backed by Anthropic's Claude Messages API. It is a thin hand-written client over net/http; it pulls in no third-party deps and lives out of the core so the console binary does not link it (it ships as the console-plugin-anthropic executable).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Anthropic ¶
Anthropic is an llm.Provider backed by Anthropic's Claude Messages API.
func New ¶
New constructs an Anthropic provider. If apiKey is empty, it falls back to the ANTHROPIC_API_KEY environment variable. Defaults: Model "claude-opus-4-8", BaseURL "https://api.anthropic.com", and a 60s HTTP client.
type Option ¶
type Option func(*Anthropic)
Option configures an Anthropic provider in New.
func WithBaseURL ¶
WithBaseURL overrides the API base URL (e.g. to point at a test server).
func WithHTTPClient ¶
WithHTTPClient sets the HTTP client used for requests.