Documentation ¶
Index ¶
Constants ¶
View Source
const ( StateTyping modelState = iota StateAsking StateExecuting StateWaitingForConfirmation )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent interface { Iterate(context.Context, string) (agent.AgentResponse, error) Reset() LogUsage() string }
Agent represents the interface for interacting with an AI agent.
type Executer ¶
type Executer interface { Run(context.Context, string) executer.ExecuterResponse Validate(string) error }
Executer represents the interface for executing commands.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model represents the application state.
func InitialModel ¶
InitialModel creates and returns a new instance of Model with default values.
Click to show internal directories.
Click to hide internal directories.