Documentation
¶
Index ¶
- func EscapeCmd() tea.Msg
- func ListDeleteCmd(selectedIndex int) func() tea.Msg
- func ListEnterCmd(selectedIndex int) func() tea.Msg
- func ListSelectCmd(selectedIndex int) func() tea.Msg
- func NewThreadListItemDelegate() list.ItemDelegate
- func NewThreadListItems(threads []*db.Thread) []list.Item
- func SettingsSubmitCmd(msg SettingsSubmitMsg) tea.Cmd
- type ChatInputModel
- type ChatInputReturnMsg
- type ChatModel
- func (m *ChatModel) AddMessage(msg Message)
- func (m *ChatModel) ResetMessages()
- func (m *ChatModel) ScrollToBottom()
- func (m *ChatModel) SetMessage(index int, msg Message)
- func (m *ChatModel) SetSize(width, height int)
- func (m *ChatModel) Update(msg tea.Msg) (ChatModel, tea.Cmd)
- func (m *ChatModel) View() string
- type Component
- type EscapeMsg
- type ListDeleteMsg
- type ListEnterMsg
- type ListModel
- func (m *ListModel) Blur()
- func (m *ListModel) Focus()
- func (m *ListModel) GoToLastPage()
- func (m *ListModel) Select(i int)
- func (m *ListModel) SetItem(index int, item list.Item) tea.Cmd
- func (m *ListModel) SetItems(items []list.Item) tea.Cmd
- func (m *ListModel) Update(msg tea.Msg) (ListModel, tea.Cmd)
- func (m *ListModel) View() string
- type ListSelectMsg
- type Message
- type NewListModelInput
- type SettingsMode
- type SettingsModel
- type SettingsSubmitMsg
- type ThreadListItem
- type ThreadListItemDelegate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListDeleteCmd ¶
func ListEnterCmd ¶
func ListSelectCmd ¶
func NewThreadListItemDelegate ¶
func NewThreadListItemDelegate() list.ItemDelegate
func SettingsSubmitCmd ¶
func SettingsSubmitCmd(msg SettingsSubmitMsg) tea.Cmd
Types ¶
type ChatInputModel ¶
type ChatInputModel struct {
// contains filtered or unexported fields
}
func NewChatInputModel ¶
func NewChatInputModel(width, height int) ChatInputModel
func (*ChatInputModel) Blur ¶
func (c *ChatInputModel) Blur()
func (*ChatInputModel) Focus ¶
func (c *ChatInputModel) Focus() tea.Cmd
func (*ChatInputModel) Update ¶
func (c *ChatInputModel) Update(msg tea.Msg) (ChatInputModel, tea.Cmd)
func (*ChatInputModel) Value ¶
func (c *ChatInputModel) Value() string
func (*ChatInputModel) View ¶
func (c *ChatInputModel) View() string
type ChatInputReturnMsg ¶
type ChatInputReturnMsg struct {
Value string
}
type ChatModel ¶
type ChatModel struct {
// contains filtered or unexported fields
}
func NewChatModel ¶
func (*ChatModel) AddMessage ¶
func (*ChatModel) ResetMessages ¶
func (m *ChatModel) ResetMessages()
func (*ChatModel) ScrollToBottom ¶
func (m *ChatModel) ScrollToBottom()
func (*ChatModel) SetMessage ¶
type ListDeleteMsg ¶
type ListDeleteMsg struct {
Index int
}
type ListEnterMsg ¶
type ListEnterMsg struct {
Index int
}
type ListModel ¶
type ListModel struct {
// contains filtered or unexported fields
}
func NewListModel ¶
func NewListModel(i *NewListModelInput) ListModel
func (*ListModel) GoToLastPage ¶
func (m *ListModel) GoToLastPage()
type ListSelectMsg ¶
type ListSelectMsg struct {
Index int
}
type NewListModelInput ¶
type SettingsMode ¶
type SettingsMode int
const ( SettingsModeAPIKey SettingsMode = iota SettingsModeLLMModel )
type SettingsModel ¶
type SettingsModel struct {
// contains filtered or unexported fields
}
func NewSettingsModel ¶
func NewSettingsModel() SettingsModel
func (*SettingsModel) Blur ¶
func (m *SettingsModel) Blur()
func (*SettingsModel) Focus ¶
func (m *SettingsModel) Focus() tea.Cmd
func (*SettingsModel) Update ¶
func (m *SettingsModel) Update(msg interface{}) (SettingsModel, tea.Cmd)
func (*SettingsModel) View ¶
func (m *SettingsModel) View() string
type SettingsSubmitMsg ¶
type ThreadListItem ¶
type ThreadListItem struct {
// contains filtered or unexported fields
}
ThreadListItem implements the list.Item, list.DefaultItem and list.ItemDelegate interface
func (*ThreadListItem) Description ¶
func (t *ThreadListItem) Description() string
func (*ThreadListItem) FilterValue ¶
func (t *ThreadListItem) FilterValue() string
func (*ThreadListItem) Title ¶
func (t *ThreadListItem) Title() string
type ThreadListItemDelegate ¶
type ThreadListItemDelegate struct {
// contains filtered or unexported fields
}
func (*ThreadListItemDelegate) Height ¶
func (d *ThreadListItemDelegate) Height() int
func (*ThreadListItemDelegate) Spacing ¶
func (d *ThreadListItemDelegate) Spacing() int
Click to show internal directories.
Click to hide internal directories.