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
type ChatForm ¶
type ChatForm struct {
// contains filtered or unexported fields
}
func NewChatForm ¶
func NewChatForm(chatService services.ChatService, agentService services.AgentService) ChatForm
func (*ChatForm) SetChatName ¶
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) SetActiveChat ¶
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
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
type ToolView ¶
type ToolView struct {
// contains filtered or unexported fields
}
func NewToolView ¶
func NewToolView(toolService services.ToolService) ToolView
type UsageView ¶
type UsageView struct {
// contains filtered or unexported fields
}
func NewUsageView ¶
func NewUsageView(chatService services.ChatService, agentService services.AgentService) UsageView
Click to show internal directories.
Click to hide internal directories.