Versions in this module Expand all Collapse all v0 v0.1.1 Jun 22, 2026 v0.1.0 Jun 22, 2026 Changes in this version + var ErrMaxIterations = errors.New("agent: max iterations reached") + type Agent struct + MaxIters int + OnToolCall func(name string, args string) + Provider provider.Provider + Registry *tools.Registry + SystemPrompt string + func New(p provider.Provider, r *tools.Registry) *Agent + func (a *Agent) Run(ctx context.Context, prompt string) (string, error)