page

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

page package: This file defines the ChatPage, which is the main interface for users to interact with chat sessions, send messages, and view message history. It manages the layout of the chat interface, handles user input, and coordinates with the app's session and agent management to facilitate conversations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChatPage

func NewChatPage(app *app.App, commands []dialog.Command) tea.Model

Types

type ChatKeyMap

type ChatKeyMap struct {
	ShowCompletionDialog        key.Binding
	ShowCommandCompletionDialog key.Binding
	NewSession                  key.Binding
	Cancel                      key.Binding
}

type LogPage

type LogPage interface {
	tea.Model
	layout.Sizeable
	layout.Bindings
}

func NewLogsPage

func NewLogsPage() LogPage

type PageChangeMsg

type PageChangeMsg struct {
	ID PageID
}

PageChangeMsg is used to change the current page

type PageID

type PageID string

PageID is a unique identifier for a page

var ChatPage PageID = "chat"

ChatPage is the main page for interacting with chat sessions, sending messages, and viewing message history.

var LogsPage PageID = "logs"

LogsPage is the page for viewing logs.

Jump to

Keyboard shortcuts

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