agent

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

Agent represents a mock agent instance

func New

func New(apiClient *client.Client, config Config) *Agent

New creates a new mock agent

func (*Agent) Run

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

Run starts the agent main loop

type AgentState

type AgentState string

AgentState represents the current state of the agent

const (
	StateIdle            AgentState = "idle"
	StateStarting        AgentState = "starting"
	StateActive          AgentState = "active"
	StateWaitingFeedback AgentState = "waiting_feedback"
	StateError           AgentState = "error"
	StateShuttingDown    AgentState = "shutting_down"
	StateFinished        AgentState = "finished"
)

type Config

type Config struct {
	Name                 string
	Worktree             string
	Randomized           bool
	TickInterval         time.Duration
	CommandCheckInterval time.Duration
}

Config holds agent configuration

Jump to

Keyboard shortcuts

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