Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoScrollTickMsg ¶ added in v1.9.1
type AutoScrollTickMsg struct {
Direction int // -1 for up, 1 for down
}
AutoScrollTickMsg triggers auto-scroll during selection
type Model ¶
type Model interface {
layout.Model
layout.Sizeable
layout.Focusable
layout.Help
layout.Positionable
AddUserMessage(content string) tea.Cmd
AddErrorMessage(content string) tea.Cmd
AddAssistantMessage() tea.Cmd
AddCancelledMessage() tea.Cmd
AddWelcomeMessage(content string) tea.Cmd
AddOrUpdateToolCall(agentName string, toolCall tools.ToolCall, toolDef tools.Tool, status types.ToolStatus) tea.Cmd
AddToolResult(msg *runtime.ToolCallResponseEvent, status types.ToolStatus) tea.Cmd
AppendToLastMessage(agentName string, messageType types.MessageType, content string) tea.Cmd
AddShellOutputMessage(content string) tea.Cmd
ScrollToBottom() tea.Cmd
}
Model represents a chat message list component
func New ¶
func New(a *app.App, sessionState *service.SessionState) Model
New creates a new message list component
func NewScrollableView ¶ added in v1.9.11
func NewScrollableView(width, height int, sessionState *service.SessionState) Model
NewScrollableView creates a simple scrollable view for displaying messages in dialogs This is a lightweight version that doesn't require app or session state management
type StreamCancelledMsg ¶ added in v1.9.1
type StreamCancelledMsg struct {
ShowMessage bool // Whether to show a cancellation message after cleanup
}
StreamCancelledMsg notifies components that the stream has been cancelled
type ToggleHideToolResultsMsg ¶ added in v1.16.0
type ToggleHideToolResultsMsg struct{}
ToggleHideToolResultsMsg triggers hiding/showing tool results
Click to show internal directories.
Click to hide internal directories.