Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TUI ¶ added in v0.0.16
type TUI struct {
// contains filtered or unexported fields
}
TUI is a rich terminal user interface for the agent.
func (*TUI) ClearScreen ¶ added in v0.0.16
func (u *TUI) ClearScreen()
type TerminalUI ¶
type TerminalUI struct {
// contains filtered or unexported fields
}
TODO: rename this to CLI because the command line interface.
func NewTerminalUI ¶
func (*TerminalUI) ClearScreen ¶
func (u *TerminalUI) ClearScreen()
func (*TerminalUI) Close ¶ added in v0.0.2
func (u *TerminalUI) Close() error
type Type ¶ added in v0.0.16
type Type string
Type is the type of user interface.
type UI ¶
type UI interface {
// ClearScreen clears any output rendered to the screen
ClearScreen()
// Run starts the UI and blocks until the context is done.
Run(ctx context.Context) error
}
UI is the interface that defines the capabilities of assisant's user interface. Each of the UIs, CLI, TUI, Web, etc. implement this interface.
Click to show internal directories.
Click to hide internal directories.