messages

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model interface {
	layout.Model
	layout.Sizeable
	layout.Focusable
	layout.Help

	AddUserMessage(content string) tea.Cmd
	AddErrorMessage(content string) tea.Cmd
	AddAssistantMessage() tea.Cmd
	AddSeparatorMessage() tea.Cmd
	AddOrUpdateToolCall(agentName string, toolCall tools.ToolCall, status types.ToolStatus) tea.Cmd
	AddToolResult(toolCall tools.ToolCall, result string, status types.ToolStatus) tea.Cmd
	AppendToLastMessage(agentName string, content string) tea.Cmd
	ClearMessages()
	ScrollToBottom() tea.Cmd
	AddShellOutputMessage(content string) tea.Cmd
}

Model represents a chat message list component

func New

func New(a *app.App) Model

New creates a new message list component

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL