modelgarden

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: Apache-2.0 Imports: 16 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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, id string) ai.Model

AnthropicModel returns the ai.Model with the given id. 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(name string, opts *ai.ModelOptions) (ai.Model, error)

DefineModel adds the model to the registry

func (*Anthropic) Init

func (a *Anthropic) Init(ctx context.Context) []api.Action

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