Documentation
¶
Index ¶
- type Model
- func (m *Model) CancelActiveRound() bool
- func (m *Model) ConversationID() domain.ConversationID
- func (m *Model) Init() tea.Cmd
- func (m *Model) SetOrigin(x, y int)
- func (m *Model) SetSize(width, height int)
- func (m *Model) ShortHelp() []key.Binding
- func (m *Model) Update(msg tea.Msg) tea.Cmd
- func (m *Model) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the main chat model. It is a flexible component - it renders exactly the size given by SetSize.
func New ¶
func New( user *auth.User, account domain.Account, workspace domain.Workspace, theme styles.Theme, db sqlite.DB, chatClient chatclient.Client, toolRegistry *tools.Registry, scope log.Scope, ) *Model
New creates a new chat model.
func (*Model) CancelActiveRound ¶
CancelActiveRound cancels the active round if one exists. Returns true if a round was cancelled.
func (*Model) ConversationID ¶
func (m *Model) ConversationID() domain.ConversationID
ConversationID returns the current conversation ID.
func (*Model) SetOrigin ¶
SetOrigin sets the terminal-absolute position of this component's top-left corner.
Directories
¶
| Path | Synopsis |
|---|---|
|
block
Package block defines the shared interface for all visual blocks in the message list viewport.
|
Package block defines the shared interface for all visual blocks in the message list viewport. |
|
messagelisttest
Package messagelisttest provides test helpers for the messagelist package.
|
Package messagelisttest provides test helpers for the messagelist package. |
|
round/turn/assistant/blocks/tools/action
Package action provides a generic tool UI model for simple tools that accumulate input, execute, and show status — with no custom body.
|
Package action provides a generic tool UI model for simple tools that accumulate input, execute, and show status — with no custom body. |
|
round/turn/assistant/blocks/tools/show
Package show renders entity cards inside tool chrome.
|
Package show renders entity cards inside tool chrome. |
Click to show internal directories.
Click to hide internal directories.