claude

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DriverName = "anthropic"
View Source
var TokenFields = []string{
	"InputTokens",
	"OutputTokens",
	"CacheCreationInputTokens",
	"CacheReadInputTokens",
}

Functions

This section is empty.

Types

type Driver

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

func NewDriver

func NewDriver(model, apikey string) (*Driver, error)

func (*Driver) GetModel

func (d *Driver) GetModel() string

func (*Driver) GetName

func (d *Driver) GetName() string

func (*Driver) QueryWithImage

func (d *Driver) QueryWithImage(ctx context.Context, input string, fsys fs.FS, path string) ([]string, map[string]int64, error)

func (*Driver) QueryWithText

func (d *Driver) QueryWithText(ctx context.Context, input string, context []string) ([]string, map[string]int64, error)

Jump to

Keyboard shortcuts

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