chat

package
v1.15.3 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EditorHeightChangedMsg added in v1.14.0

type EditorHeightChangedMsg struct {
	Height int
}

EditorHeightChangedMsg is emitted when the editor height changes (e.g., during resize)

type FocusedPanel

type FocusedPanel string

FocusedPanel represents which panel is currently focused

const (
	PanelChat   FocusedPanel = "chat"
	PanelEditor FocusedPanel = "editor"
)

type KeyMap

type KeyMap struct {
	Tab            key.Binding
	Cancel         key.Binding
	ShiftNewline   key.Binding
	CtrlJ          key.Binding
	ExternalEditor key.Binding
}

KeyMap defines key bindings for the chat page

type Page

type Page interface {
	layout.Model
	layout.Sizeable
	layout.Help
	CompactSession() tea.Cmd
	Cleanup()
	// GetInputHeight returns the current height of the editor/input area (including padding)
	GetInputHeight() int
}

Page represents the main chat page

func New

func New(a *app.App, sessionState *service.SessionState) Page

New creates a new chat page

Jump to

Keyboard shortcuts

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