modelgarden

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxNumberOfTokens = 8192
	ToolNameRegex     = `^[a-zA-Z0-9_-]{1,64}$`
)

Variables

This section is empty.

Functions

func AnthropicModel

func AnthropicModel(g *genkit.Genkit, name string) ai.Model

AnthropicModel returns the ai.Model with the given name. It returns nil if the model was not defined

Types

type Anthropic

type Anthropic struct {
	ProjectID string
	Location  string
	// contains filtered or unexported fields
}

func (*Anthropic) DefineModel

func (a *Anthropic) DefineModel(g *genkit.Genkit, name string, info *ai.ModelInfo) (ai.Model, error)

DefineModel adds the model to the registry

func (*Anthropic) Init

func (a *Anthropic) Init(ctx context.Context, g *genkit.Genkit) (err error)

func (*Anthropic) Name

func (a *Anthropic) Name() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳