agent

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultModel = "claude-sonnet-4-20250514"
	MaxRetries   = 3
)
View Source
const SystemPrompt = `` /* 8268-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent(cfg AgentConfig) (*Agent, error)

func (*Agent) Execute

func (a *Agent) Execute(cfg *config.CliItem) (string, error)

func (*Agent) GenerateConfig

func (a *Agent) GenerateConfig(ctx context.Context, request string) (*config.CliItem, string, error)

func (*Agent) SetLimits

func (a *Agent) SetLimits(limits *config.Limits)

type AgentConfig

type AgentConfig struct {
	APIKey  string
	Model   string
	Logger  logger.Logger
	Limits  *config.Limits
	Verbose bool
}

type REPL

type REPL struct {
	// contains filtered or unexported fields
}

func NewREPL

func NewREPL(agent *Agent, verbose bool) *REPL

func (*REPL) Run

func (r *REPL) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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