anthropic

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

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 New

func New(baseURL, model, apiKey string) *Client

New builds a client. baseURL may be empty (defaults to DefaultBaseURL).

func (*Client) Complete

Complete sends a Messages request with tools and maps the result back.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL