ui

package
v0.0.0-...-77d73d2 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BashUI

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

func (*BashUI) AddLLMOutput

func (u *BashUI) AddLLMOutput(output *LLMOutput)

func (*BashUI) Run

func (u *BashUI) Run() error

func (*BashUI) SetCallback

func (u *BashUI) SetCallback(callback func(text string) error)

type LLMOutput

type LLMOutput struct {
	Text string
}

type NoInteractTerminal

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

func (*NoInteractTerminal) AddLLMOutput

func (u *NoInteractTerminal) AddLLMOutput(output *LLMOutput)

func (*NoInteractTerminal) Run

func (u *NoInteractTerminal) Run() error

func (*NoInteractTerminal) SetCallback

func (u *NoInteractTerminal) SetCallback(callback func(text string) error)

type TViewUI

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

func (*TViewUI) AddLLMOutput

func (u *TViewUI) AddLLMOutput(output *LLMOutput)

func (*TViewUI) Run

func (u *TViewUI) Run() error

func (*TViewUI) SetCallback

func (u *TViewUI) SetCallback(callback func(text string) error)

type TerminalUI

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

func (*TerminalUI) AddLLMOutput

func (u *TerminalUI) AddLLMOutput(output *LLMOutput)

func (*TerminalUI) Run

func (u *TerminalUI) Run() error

func (*TerminalUI) SetCallback

func (u *TerminalUI) SetCallback(callback func(text string) error)

type UI

type UI interface {
	SetCallback(callback func(text string) error)
	AddLLMOutput(output *LLMOutput)
	Run() error
}

func NewBashUI

func NewBashUI() UI

func NewNoInteractTerminal

func NewNoInteractTerminal(promptFile string) UI

func NewTViewUI

func NewTViewUI() UI

func NewTerminalUI

func NewTerminalUI() UI

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳