Help us shape the future of Go! Take the 2026 Go Developer Survey

agentui

package
v0.0.204 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SpinnerChars = []string{"⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"}

Functions

func Run

func Run(cfg Config, args []string) error

func SpinnerChar

func SpinnerChar(frame int) string

func WrapText

func WrapText(s string, width int) string

Types

type Config

type Config struct {
	AgentName     string
	SessionPrefix string
	Prompt        string
	Usage         string
	Dispatch      map[string]func() error
	SkillName     string
	SkillContent  string
}

type QuestionOption added in v0.0.15

type QuestionOption = question.Option

type TUITestDriver added in v0.0.15

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

func NewTUITestDriver added in v0.0.15

func NewTUITestDriver(opts TUITestDriverOptions) *TUITestDriver

func (*TUITestDriver) DeliverLLMDone added in v0.0.15

func (d *TUITestDriver) DeliverLLMDone(output string, err error)

func (*TUITestDriver) DeliverQuestion added in v0.0.15

func (d *TUITestDriver) DeliverQuestion(q TUITestQuestion)

func (*TUITestDriver) Enter added in v0.0.15

func (d *TUITestDriver) Enter()

func (*TUITestDriver) FlushLLM added in v0.0.15

func (d *TUITestDriver) FlushLLM() bool

func (*TUITestDriver) Press added in v0.0.15

func (d *TUITestDriver) Press(key string)

func (*TUITestDriver) Send added in v0.0.15

func (d *TUITestDriver) Send(msg tea.Msg)

func (*TUITestDriver) Snapshot added in v0.0.15

func (d *TUITestDriver) Snapshot() TUITestSnapshot

func (*TUITestDriver) Tab added in v0.0.15

func (d *TUITestDriver) Tab()

func (*TUITestDriver) TypeText added in v0.0.15

func (d *TUITestDriver) TypeText(text string)

type TUITestDriverOptions added in v0.0.15

type TUITestDriverOptions struct {
	Width       int
	Feature     string
	Model       string
	AgentRunner string
	SessionID   string
	SessionDir  string
	Done        bool
	Questions   []TUITestQuestion
	OnLLMStart  func(TUITestLLMCall) TUITestLLMResult
}

type TUITestLLMCall added in v0.0.15

type TUITestLLMCall struct {
	Prompt      string
	Model       string
	SessionID   string
	SessionDir  string
	AgentRunner string
}

type TUITestLLMResult added in v0.0.15

type TUITestLLMResult struct {
	Output string
	Err    error
}

type TUITestQuestion added in v0.0.15

type TUITestQuestion struct {
	ID       string
	Question string
	Options  []QuestionOption
	Answer   string
}

type TUITestSnapshot added in v0.0.15

type TUITestSnapshot struct {
	Done              bool
	ClarificationMode bool
	CtrlCPending      bool
	Logs              []string
	Questions         []TUITestQuestion
	SelectedQuestion  string
	Input             string
	LLMOutput         string
	Error             string
	View              string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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