Documentation
¶
Overview ¶
Package anthropic implements the llm.Provider contract against the Anthropic Messages API. Stdlib-only: net/http for transport, bufio for SSE, encoding/json for payloads.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Provider)
Option configures a Provider.
func WithAPIKey ¶
WithAPIKey overrides the key picked up from ANTHROPIC_API_KEY.
func WithBaseURL ¶
WithBaseURL points the client at a custom origin (used by tests).
func WithHTTPClient ¶
WithHTTPClient swaps the underlying http.Client (used by tests).
Click to show internal directories.
Click to hide internal directories.