agent

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMaxIterations = errors.New("agent: max iterations reached")
)

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Provider     provider.Provider
	Registry     *tools.Registry
	MaxIters     int
	SystemPrompt string
	OnToolCall   func(name string, args string)
}

func New

func New(p provider.Provider, r *tools.Registry) *Agent

func (*Agent) Run

func (a *Agent) Run(ctx context.Context, prompt string) (string, error)

Jump to

Keyboard shortcuts

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