Documentation
¶
Index ¶
- func GetUserInput(cfg *api.AppConfig) (*api.UserInput, error)
- func InitVars(app *api.AppConfig) (*api.Vars, error)
- func LaunchEditor(editor string, content string) (string, error)
- func LoadHistory(base string, maxHistory, maxSpan int) ([]*api.Message, error)
- func OnceValue[T any](f func() T) func() T
- func PrintInput(cfg *api.AppConfig, input *api.UserInput)
- func PrintOutput(format string, output *api.Output) error
- func ProcessBashScript(cfg *api.AppConfig, script string) error
- func RunAgent(cfg *api.AppConfig) error
- func RunSwarm(cfg *api.AppConfig, input *api.UserInput) error
- func SaveOutput(filename string, message *api.Output) error
- func SimpleEditor(title, content string) (string, bool, error)
- func SpeakOutput(cfg *api.AppConfig, output *api.Output)
- func StoreHistory(base string, messages []*api.Message) error
- type Editor
- type FileMemStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUserInput ¶
GetUserInput collects user input for the agent. It prefers a direct message from the command line flag (--message), otherwise, it determines the input source (stdin, clipboard, editor) and collects input accordingly. It also attaches any provided files or template file if provided.
func LoadHistory ¶ added in v0.0.3
func PrintInput ¶
PrintInput prints the user input
Types ¶
type FileMemStore ¶ added in v0.0.3
type FileMemStore struct {
// contains filtered or unexported fields
}
func NewFileMemStore ¶ added in v0.0.3
func NewFileMemStore(app *api.AppConfig) *FileMemStore
Click to show internal directories.
Click to hide internal directories.