chat

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 29 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 struct {
	// TUI state
	TUI    *app.TUI
	Height int
	Width  int
	// contains filtered or unexported fields
}

func Chat

func Chat(state *app.TUI) *Model

func (*Model) Content

func (m *Model) Content(width, height int, errors string) string

func (*Model) Footer

func (m *Model) Footer(width int) string

func (*Model) Header

func (m *Model) Header(width int) string

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (types.ViewModel, tea.Cmd)

type MsgDeleteMessageConfirm

type MsgDeleteMessageConfirm struct {
	Index           int
	WithDescendants bool
}

MsgDeleteMessageConfirm is sent when message deletion is confirmed

type MsgDeleteMessageDecline

type MsgDeleteMessageDecline struct{}

MsgDeleteMessageDecline is sent when message deletion is declined

type MsgExecuteTools

type MsgExecuteTools struct {
	ToolCalls     []api.ToolCall
	Confirmations []api.ToolConfirmation
}

MsgExecuteTools is sent when all individual tool call confirmations have been answered. Confirmations contains one ToolConfirmation per ToolCall.

type MsgUnattendedConfirm

type MsgUnattendedConfirm struct {
	Level int
}

MsgUnattendedConfirm is sent when enabling unattended execution is confirmed

type MsgUnattendedDecline

type MsgUnattendedDecline struct{}

MsgUnattendedDecline is sent when enabling unattended execution is declined

Jump to

Keyboard shortcuts

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