tui

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyChatName   = errors.New("chat name cannot be empty")
	ErrNoAgentSelected = errors.New("no agent selected")
)

Functions

This section is empty.

Types

type AgentView

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

func NewAgentView

func NewAgentView(agentService services.AgentService) AgentView

func (AgentView) Init

func (v AgentView) Init() tea.Cmd

func (AgentView) Update

func (v AgentView) Update(msg tea.Msg) (AgentView, tea.Cmd)

func (AgentView) View

func (v AgentView) View() string

type ChatForm

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

func NewChatForm

func NewChatForm(chatService services.ChatService, agentService services.AgentService) ChatForm

func (ChatForm) Init

func (c ChatForm) Init() tea.Cmd

func (*ChatForm) SetChatName

func (c *ChatForm) SetChatName(name string)

func (ChatForm) Update

func (c ChatForm) Update(msg tea.Msg) (ChatForm, tea.Cmd)

func (ChatForm) View

func (c ChatForm) View() string

type ChatView

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

func NewChatView

func NewChatView(chatService services.ChatService, agentService services.AgentService, activeChat *entities.Chat) ChatView

func (ChatView) Init

func (c ChatView) Init() tea.Cmd

func (*ChatView) SetActiveChat

func (c *ChatView) SetActiveChat(chat *entities.Chat)

func (ChatView) Update

func (c ChatView) Update(msg tea.Msg) (ChatView, tea.Cmd)

func (ChatView) View

func (c ChatView) View() string

type CommandItem

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

func (CommandItem) Description

func (i CommandItem) Description() string

func (CommandItem) FilterValue

func (i CommandItem) FilterValue() string

func (CommandItem) Title

func (i CommandItem) Title() string

type CommandMenu

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

func NewCommandMenu

func NewCommandMenu() CommandMenu

func (CommandMenu) Init

func (m CommandMenu) Init() tea.Cmd

func (CommandMenu) Update

func (m CommandMenu) Update(msg tea.Msg) (CommandMenu, tea.Cmd)

func (CommandMenu) View

func (m CommandMenu) View() string

type HelpView

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

func NewHelpView

func NewHelpView() HelpView

func (HelpView) Init

func (h HelpView) Init() tea.Cmd

func (HelpView) Update

func (h HelpView) Update(msg tea.Msg) (HelpView, tea.Cmd)

func (HelpView) View

func (h HelpView) View() string

type HistoryView

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

func NewHistoryView

func NewHistoryView(chatService services.ChatService) HistoryView

func (HistoryView) Init

func (h HistoryView) Init() tea.Cmd

func (HistoryView) Update

func (h HistoryView) Update(msg tea.Msg) (HistoryView, tea.Cmd)

func (HistoryView) View

func (h HistoryView) View() string

type TUI

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

func NewTUI

func NewTUI(chatService services.ChatService, agentService services.AgentService, toolService services.ToolService) TUI

func (TUI) Init

func (t TUI) Init() tea.Cmd

func (TUI) Update

func (t TUI) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (TUI) View

func (t TUI) View() string

type ToolView

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

func NewToolView

func NewToolView(toolService services.ToolService) ToolView

func (ToolView) Init

func (v ToolView) Init() tea.Cmd

func (ToolView) Update

func (v ToolView) Update(msg tea.Msg) (ToolView, tea.Cmd)

func (ToolView) View

func (v ToolView) View() string

type UsageView

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

func NewUsageView

func NewUsageView(chatService services.ChatService, agentService services.AgentService) UsageView

func (UsageView) Init

func (u UsageView) Init() tea.Cmd

func (UsageView) Update

func (u UsageView) Update(msg tea.Msg) (UsageView, tea.Cmd)

func (UsageView) View

func (u UsageView) View() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL