anthropic

package
v1.4.430 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 14 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 {
	*plugins.PluginBase
	ApiBaseURL *plugins.SetupQuestion
	ApiKey     *plugins.SetupQuestion
	// contains filtered or unexported fields
}

func NewClient

func NewClient() (ret *Client)

func (*Client) IsConfigured

func (an *Client) IsConfigured() bool

IsConfigured returns true if the API key is configured

func (*Client) ListModels

func (an *Client) ListModels() (ret []string, err error)

func (*Client) Send

func (an *Client) Send(ctx context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions) (
	ret string, err error)

func (*Client) SendStream

func (an *Client) SendStream(
	msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, channel chan domain.StreamUpdate,
) (err error)

func (*Client) Setup

func (an *Client) Setup() (err error)

Jump to

Keyboard shortcuts

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