Documentation
¶
Index ¶
- Variables
- func AccentStyle() lipgloss.Style
- func ConfirmNStyle() lipgloss.Style
- func ConfirmYStyle() lipgloss.Style
- func DimStyle() lipgloss.Style
- func ErrorStyle() lipgloss.Style
- func FaintStyle() lipgloss.Style
- func HeaderStyle() lipgloss.Style
- func HoverStyle() lipgloss.Style
- func Run(backend Backend, modelName string, connected bool) error
- func SlashDescStyle(active bool) lipgloss.Style
- func SlashNameStyle(active bool, autoMode bool) lipgloss.Style
- func ToolStyle() lipgloss.Style
- func WardenStyleAuto(autoMode bool) lipgloss.Style
- type Backend
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Green = lipgloss.Color("#8AB89A") GreenMid = lipgloss.Color("#2D8A5A") GreenFaint = lipgloss.Color("#1A4D34") Blue = lipgloss.Color("#38BDF8") BlueMid = lipgloss.Color("#0EA5E9") BlueFaint = lipgloss.Color("#0C4A6E") Red = lipgloss.Color("#ff4444") Dim = lipgloss.Color("#666666") DimHover = lipgloss.Color("#999999") Faint = lipgloss.Color("#2a2a2a") White = lipgloss.Color("#ffffff") )
Functions ¶
func AccentStyle ¶
func ConfirmNStyle ¶
func ConfirmYStyle ¶
func ErrorStyle ¶
func FaintStyle ¶
func HeaderStyle ¶
func HoverStyle ¶
func SlashDescStyle ¶
func WardenStyleAuto ¶
Types ¶
type Backend ¶
type Backend interface {
StreamChat(payload map[string]string) <-chan client.Event
Interrupt() error
ResetSession() error
SendQuestion(id string, answers [][]string) error
SendConfirm(id string, ok bool) error
SetMode(auto bool) error
GetStatus() (*client.StatusResult, error)
Compact() (*client.CompactResult, error)
SetMemoryState(enabled bool) error
ClearMemory() (int, error)
GetMemoryState() (*client.MemoryState, error)
ListModels() ([]string, string, error)
SetModel(name string) error
ListSkills() ([]client.Skill, error)
LoadSkill(name string) (string, error)
Connect(provider, apiURL, apiKey, modelName string) error
BaseURL() string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.
