Documentation
¶
Index ¶
- type ConversationView
- func (cv *ConversationView) CanScrollDown() bool
- func (cv *ConversationView) CanScrollUp() bool
- func (cv *ConversationView) GetScrollOffset() int
- func (cv *ConversationView) Init() tea.Cmd
- func (cv *ConversationView) IsToolResultExpanded(index int) bool
- func (cv *ConversationView) Render() string
- func (cv *ConversationView) SetConversation(conversation []domain.ConversationEntry)
- func (cv *ConversationView) SetHeight(height int)
- func (cv *ConversationView) SetWidth(width int)
- func (cv *ConversationView) ToggleToolResultExpansion(index int)
- func (cv *ConversationView) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (cv *ConversationView) View() string
- type HelpBar
- func (hb *HelpBar) Init() tea.Cmd
- func (hb *HelpBar) IsEnabled() bool
- func (hb *HelpBar) Render() string
- func (hb *HelpBar) SetEnabled(enabled bool)
- func (hb *HelpBar) SetHeight(height int)
- func (hb *HelpBar) SetShortcuts(shortcuts []shared.KeyShortcut)
- func (hb *HelpBar) SetWidth(width int)
- func (hb *HelpBar) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (hb *HelpBar) View() string
- type InputView
- func (iv *InputView) CanHandle(key tea.KeyMsg) bool
- func (iv *InputView) ClearInput()
- func (iv *InputView) GetCursor() int
- func (iv *InputView) GetInput() string
- func (iv *InputView) HandleKey(key tea.KeyMsg) (tea.Model, tea.Cmd)
- func (iv *InputView) Init() tea.Cmd
- func (iv *InputView) Render() string
- func (iv *InputView) SetCursor(position int)
- func (iv *InputView) SetHeight(height int)
- func (iv *InputView) SetPlaceholder(text string)
- func (iv *InputView) SetText(text string)
- func (iv *InputView) SetWidth(width int)
- func (iv *InputView) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (iv *InputView) View() string
- type StatusView
- func (sv *StatusView) ClearStatus()
- func (sv *StatusView) Init() tea.Cmd
- func (sv *StatusView) IsShowingError() bool
- func (sv *StatusView) IsShowingSpinner() bool
- func (sv *StatusView) Render() string
- func (sv *StatusView) SetHeight(height int)
- func (sv *StatusView) SetTokenUsage(usage string)
- func (sv *StatusView) SetWidth(width int)
- func (sv *StatusView) ShowError(message string)
- func (sv *StatusView) ShowSpinner(message string)
- func (sv *StatusView) ShowStatus(message string)
- func (sv *StatusView) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (sv *StatusView) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConversationView ¶
ConversationView handles the chat conversation display
func NewConversationView ¶
func NewConversationView() *ConversationView
func (*ConversationView) CanScrollDown ¶
func (cv *ConversationView) CanScrollDown() bool
func (*ConversationView) CanScrollUp ¶
func (cv *ConversationView) CanScrollUp() bool
func (*ConversationView) GetScrollOffset ¶
func (cv *ConversationView) GetScrollOffset() int
func (*ConversationView) IsToolResultExpanded ¶
func (cv *ConversationView) IsToolResultExpanded(index int) bool
func (*ConversationView) Render ¶
func (cv *ConversationView) Render() string
func (*ConversationView) SetConversation ¶
func (cv *ConversationView) SetConversation(conversation []domain.ConversationEntry)
func (*ConversationView) SetHeight ¶
func (cv *ConversationView) SetHeight(height int)
func (*ConversationView) SetWidth ¶
func (cv *ConversationView) SetWidth(width int)
func (*ConversationView) ToggleToolResultExpansion ¶
func (cv *ConversationView) ToggleToolResultExpansion(index int)
func (*ConversationView) Update ¶
func (cv *ConversationView) Update(msg tea.Msg) (tea.Model, tea.Cmd)
func (*ConversationView) View ¶
func (cv *ConversationView) View() string
type HelpBar ¶
type HelpBar struct {
// contains filtered or unexported fields
}
HelpBar displays keyboard shortcuts at the bottom of the screen
func NewHelpBar ¶
func NewHelpBar() *HelpBar
func (*HelpBar) SetEnabled ¶
func (*HelpBar) SetShortcuts ¶
func (hb *HelpBar) SetShortcuts(shortcuts []shared.KeyShortcut)
type InputView ¶
type InputView struct { Autocomplete shared.AutocompleteInterface // contains filtered or unexported fields }
InputView handles user input with history and autocomplete
func NewInputView ¶
func NewInputView(modelService domain.ModelService) *InputView
func (*InputView) ClearInput ¶
func (iv *InputView) ClearInput()
func (*InputView) SetPlaceholder ¶
type StatusView ¶
type StatusView struct {
// contains filtered or unexported fields
}
StatusView handles status messages, errors, and loading spinners
func NewStatusView ¶
func NewStatusView() *StatusView
func (*StatusView) ClearStatus ¶
func (sv *StatusView) ClearStatus()
func (*StatusView) IsShowingError ¶
func (sv *StatusView) IsShowingError() bool
func (*StatusView) IsShowingSpinner ¶
func (sv *StatusView) IsShowingSpinner() bool
func (*StatusView) Render ¶
func (sv *StatusView) Render() string
func (*StatusView) SetHeight ¶
func (sv *StatusView) SetHeight(height int)
func (*StatusView) SetTokenUsage ¶
func (sv *StatusView) SetTokenUsage(usage string)
func (*StatusView) SetWidth ¶
func (sv *StatusView) SetWidth(width int)
func (*StatusView) ShowError ¶
func (sv *StatusView) ShowError(message string)
func (*StatusView) ShowSpinner ¶
func (sv *StatusView) ShowSpinner(message string)
func (*StatusView) ShowStatus ¶
func (sv *StatusView) ShowStatus(message string)
func (*StatusView) Update ¶
func (sv *StatusView) Update(msg tea.Msg) (tea.Model, tea.Cmd)
func (*StatusView) View ¶
func (sv *StatusView) View() string
Click to show internal directories.
Click to hide internal directories.