Documentation
¶
Overview ¶
Package anthropic provides a ModelProvider adapter for the Anthropic Messages API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*providerOpts)
Option is a functional option for configuring Provider.
func WithHTTPClient ¶
WithHTTPClient sets a custom HTTP client.
func WithPromptCaching ¶
func WithPromptCaching() Option
WithPromptCaching enables cache_control blocks on system and first user message.
func WithVersion ¶
WithVersion sets the Anthropic API version (default "2023-06-01").
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements runtime.ModelProvider for Anthropic's Messages API.
func NewWithBaseURL ¶
NewWithBaseURL creates a new Provider with a custom base URL (for testing).
Click to show internal directories.
Click to hide internal directories.