ui

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CHAT_INPUT_PLACEHOLDER = "Type a message..."
	CHAT_INIT_LOADING      = "Loading..."
	CHAT_WAITING_RESPONSE  = "> ⏳ Waiting for response..."
	CHAT_TYPING_INDICATOR  = "Bot: typing..."
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatTUIModel

type ChatTUIModel struct {
	// contains filtered or unexported fields
}

func InitialModel

func InitialModel(opts InitialModelOptions) ChatTUIModel

func (ChatTUIModel) Init

func (m ChatTUIModel) Init() tea.Cmd

func (ChatTUIModel) Update

func (m ChatTUIModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ChatTUIModel) View

func (m ChatTUIModel) View() string

type InitialModelOptions

type InitialModelOptions struct {
	Title          string
	GetBotResponse func(messages []llm.Message) tea.Cmd
	Messages       []llm.Message
}

Jump to

Keyboard shortcuts

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