anthropic

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client implements the llm.Provider interface for Anthropic

func New

func New(apiKey string) *Client

New creates a new Anthropic client

func (*Client) Chat

Chat sends a chat request to Anthropic

func (*Client) Model added in v0.2.4

func (c *Client) Model(ctx context.Context, id string) (*llm.Model, error)

Model retrieves a specific model

func (*Client) Models

func (c *Client) Models(ctx context.Context) (models []*llm.Model, err error)

Models lists available models

func (*Client) Name

func (c *Client) Name() string

Jump to

Keyboard shortcuts

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