Documentation
¶
Index ¶
- Variables
- func Run(cfg Config, args []string) error
- func SpinnerChar(frame int) string
- func WrapText(s string, width int) string
- type Config
- type QuestionOption
- type TUITestDriver
- func (d *TUITestDriver) DeliverLLMDone(output string, err error)
- func (d *TUITestDriver) DeliverQuestion(q TUITestQuestion)
- func (d *TUITestDriver) Enter()
- func (d *TUITestDriver) FlushLLM() bool
- func (d *TUITestDriver) Press(key string)
- func (d *TUITestDriver) Send(msg tea.Msg)
- func (d *TUITestDriver) Snapshot() TUITestSnapshot
- func (d *TUITestDriver) Tab()
- func (d *TUITestDriver) TypeText(text string)
- type TUITestDriverOptions
- type TUITestLLMCall
- type TUITestLLMResult
- type TUITestQuestion
- type TUITestSnapshot
Constants ¶
This section is empty.
Variables ¶
View Source
var SpinnerChars = []string{"⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"}
Functions ¶
func SpinnerChar ¶
Types ¶
type QuestionOption ¶ added in v0.0.15
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 TUITestLLMResult ¶ added in v0.0.15
type TUITestQuestion ¶ added in v0.0.15
type TUITestQuestion struct {
ID string
Question string
Options []QuestionOption
Answer string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.