Documentation
¶
Overview ¶
Package anthropic implements providers.ModelProvider against the Anthropic Messages API (native tool use). It maps RunLore's engine-agnostic exchange (OpenAI-shaped: assistant tool_calls + separate tool messages) onto Anthropic's content-block form (tool_use blocks; tool_result blocks coalesced into one user turn).
Index ¶
Constants ¶
View Source
const DefaultBaseURL = "https://api.anthropic.com"
DefaultBaseURL is the public Anthropic API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an Anthropic Messages API model provider.
func (*Client) Complete ¶
func (c *Client) Complete(ctx context.Context, req providers.CompletionRequest) (providers.CompletionResponse, error)
Complete sends a Messages request with tools and maps the result back.
Click to show internal directories.
Click to hide internal directories.