Documentation
¶
Overview ¶
Package tui implements the Bubble Tea UI for streaming completions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chat ¶ added in v0.2.4
Chat is the Bubble Tea model for an interactive multi-turn REPL.
func NewChat ¶ added in v0.2.4
func NewChat( ctx context.Context, r *lipgloss.Renderer, cfg *config.Config, agentSvc *agent.Service, history []proto.Message, saveFn SaveFn, initialPrompt string, ) *Chat
NewChat creates the Bubble Tea model for interactive chat.
type Yai ¶
type Yai struct {
// Output is populated at the end of a run for non-raw output printing.
Output string
Input string
Styles present.Styles
Error *errs.Error
Config *config.Config
// contains filtered or unexported fields
}
Yai is the Bubble Tea model that manages reading stdin and streaming LLM output.
func NewYai ¶
func NewYai( ctx context.Context, r *lipgloss.Renderer, cfg *config.Config, agentSvc *agent.Service, ) *Yai
NewYai creates the Bubble Tea model used for interactive streaming output.
func (*Yai) GlamourOutput ¶
GlamourOutput returns the last rendered formatted output.
Click to show internal directories.
Click to hide internal directories.