anthropic

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const AnthropicVersion = "2023-06-01"
View Source
const Provider = "Anthropic"

Variables

View Source
var GenModel_3_5_haiku_20241022 = gen.Model{
	Provider:                Provider,
	Name:                    "claude-3-5-haiku-20241022",
	Description:             "",
	InputContentTypes:       nil,
	InputMaxToken:           0,
	OutputMaxToken:          0,
	SupportTools:            false,
	SupportStructuredOutput: false,
}
View Source
var GenModel_3_5_haiku_latest = gen.Model{
	Provider:                Provider,
	Name:                    "claude-3-5-haiku-latest",
	Description:             "",
	InputContentTypes:       nil,
	InputMaxToken:           0,
	OutputMaxToken:          0,
	SupportTools:            false,
	SupportStructuredOutput: false,
}
View Source
var GenModel_3_5_sonnet_20240620 = gen.Model{
	Provider:                Provider,
	Name:                    "claude-3-5-sonnet-20240620",
	Description:             "",
	InputContentTypes:       nil,
	InputMaxToken:           0,
	OutputMaxToken:          0,
	SupportTools:            false,
	SupportStructuredOutput: false,
}
View Source
var GenModel_3_5_sonnet_20241022 = gen.Model{
	Provider:                Provider,
	Name:                    "claude-3-5-sonnet-20241022",
	Description:             "",
	InputContentTypes:       nil,
	InputMaxToken:           0,
	OutputMaxToken:          0,
	SupportTools:            false,
	SupportStructuredOutput: false,
}
View Source
var GenModel_3_5_sonnet_latest = gen.Model{
	Provider:                Provider,
	Name:                    "claude-3-5-sonnet-latest",
	Description:             "",
	InputContentTypes:       nil,
	InputMaxToken:           0,
	OutputMaxToken:          0,
	SupportTools:            false,
	SupportStructuredOutput: false,
}

https://docs.anthropic.com/en/docs/about-claude/models

View Source
var GenModel_3_haiku_20240307 = gen.Model{
	Provider:                Provider,
	Name:                    "claude-3-haiku-20240307",
	Description:             "",
	InputContentTypes:       nil,
	InputMaxToken:           0,
	OutputMaxToken:          0,
	SupportTools:            false,
	SupportStructuredOutput: false,
}
View Source
var GenModel_3_opus_20240229 = gen.Model{
	Provider:                Provider,
	Name:                    "claude-3-opus-20240229",
	Description:             "",
	InputContentTypes:       nil,
	InputMaxToken:           0,
	OutputMaxToken:          0,
	SupportTools:            false,
	SupportStructuredOutput: false,
}
View Source
var GenModel_3_opus_latest = gen.Model{
	Provider:                Provider,
	Name:                    "claude-3-opus-latest",
	Description:             "",
	InputContentTypes:       nil,
	InputMaxToken:           0,
	OutputMaxToken:          0,
	SupportTools:            false,
	SupportStructuredOutput: false,
}
View Source
var GenModel_3_sonnet_20241022 = gen.Model{
	Provider:                Provider,
	Name:                    "claude-3-sonnet-20240229",
	Description:             "",
	InputContentTypes:       nil,
	InputMaxToken:           0,
	OutputMaxToken:          0,
	SupportTools:            false,
	SupportStructuredOutput: false,
}

Functions

This section is empty.

Types

type Anthropic

type Anthropic struct {
	Log *slog.Logger `json:"-"`
	// contains filtered or unexported fields
}

func New

func New(apiKey string) *Anthropic

func (*Anthropic) Generator

func (a *Anthropic) Generator(options ...gen.Option) *gen.Generator

func (*Anthropic) SetLogger

func (g *Anthropic) SetLogger(logger *slog.Logger) *Anthropic

Jump to

Keyboard shortcuts

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