anthropic

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 11 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 {
	llm.LLMConfig
	// contains filtered or unexported fields
}

Client implements interfaces.LLMClient for Anthropic Claude.

func NewClient

func NewClient(opts ...llm.Option) (*Client, error)

NewClient creates a new Anthropic LLM client.

func (*Client) Generate

func (*Client) GenerateStream

func (c *Client) GenerateStream(ctx context.Context, req *interfaces.LLMRequest) (interfaces.LLMStream, error)

func (*Client) GetModel

func (c *Client) GetModel() string

func (*Client) GetProvider

func (c *Client) GetProvider() interfaces.LLMProvider

func (*Client) IsStreamSupported

func (c *Client) IsStreamSupported() bool

Jump to

Keyboard shortcuts

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