Versions in this module Expand all Collapse all v0 v0.0.7 Oct 27, 2026 v0.0.6 Oct 16, 2026 v0.0.5 Oct 12, 2026 v0.0.4 Sep 27, 2026 v0.0.3 Sep 27, 2026 v0.0.2 Sep 17, 2026 v0.0.1 Sep 13, 2026 Changes in this version + func IsRunning(workdir string) (bool, int) + func LogPath(workdir string) string + func PIDPath(workdir string) string + func ReadPID(workdir string) int + func RemovePID(workdir string) error + func StatePath(workdir string) string + func Stop(workdir string) error + func WritePID(workdir string, pid int) error + type Agent struct + func New(cfg AgentConfig) *Agent + func (a *Agent) Register(t Tool) + func (a *Agent) Run(ctx context.Context, goal string, maxSteps int) (string, error) + func (a *Agent) Steps() []StepLog + type AgentConfig struct + DryRun bool + Model string + Provider provider.Provider + Timeout time.Duration + WorkDir string + type State struct + Interval string + LastError string + LastRunAt time.Time + Model string + NextRunAt time.Time + PID int + Provider string + RunCount int + StartedAt time.Time + Status string + TotalTasksCompleted int + TotalTasksFailed int + func Load(workdir string) (*State, error) + func (s *State) Save(workdir string) error + type StepLog struct + Action string + ActionInput map[string]string + Observation string + Step int + Thought string + type Tool interface + Description func() string + Name func() string + Run func(args map[string]string) (string, error)