anthropic

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func DefineModel

func DefineModel(client anthropic.Client, provider, name string, info ai.ModelOptions) ai.Model

func Generate

func Generate(
	ctx context.Context,
	client anthropic.Client,
	model string,
	input *ai.ModelRequest,
	cb func(context.Context, *ai.ModelResponseChunk) error,
) (*ai.ModelResponse, error)

Generate function defines how a generate request is done in Anthropic models

Types

This section is empty.

Jump to

Keyboard shortcuts

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