ui

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChat

func NewChat() tea.Model

func NewChatPage

func NewChatPage(buildAgent func() (agent.Agent, error), summary AgentSummary) tea.Model

func NewSummary

func NewSummary(sum AgentSummary) tea.Model

func NewTextBox

func NewTextBox() tea.Model

Types

type AIErrorSend

type AIErrorSend struct {
	Error error
}

type AIMessageSend

type AIMessageSend struct {
	Unfinished bool
	Message    string
}

type AIReasoningSend

type AIReasoningSend struct {
	Reasoning string
	ToolCalls []string
	For       time.Duration
}

type AddMessage

type AddMessage struct {
	Type    MessageType
	Content string
}

type AgentSummary

type AgentSummary struct {
	Name         string
	Description  []string
	NumMCP       int
	NumSubAgents int
	ModelName    string
}

type AppendMessageText added in v0.0.6

type AppendMessageText struct {
	ExtraText string
}

type EnableMessage

type EnableMessage struct {
	Enable bool
}

type Message

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

func (Message) Init

func (m Message) Init() tea.Cmd

func (Message) Update

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

func (Message) View

func (c Message) View() string

type MessageType

type MessageType int
const (
	UserMessage MessageType = iota
	CRAIGMessage
	CRAIGPartialMessage
	CRAIGReasoningMessage
	ErrorMessage
)

type ResetAgentMessage

type ResetAgentMessage struct{}

type ResetMessages

type ResetMessages struct{}

type ResetScrollMessage

type ResetScrollMessage struct{}

type ScrollMessage

type ScrollMessage struct {
	Delta int
}

type SetChatInfoMessage

type SetChatInfoMessage struct {
	Message string
}

type SetConcurrentMessageSender

type SetConcurrentMessageSender struct {
	MsgSender func(tea.Msg)
}

type SetHeight

type SetHeight struct {
	Height int
}

type SetTextboxCompleteMessage

type SetTextboxCompleteMessage struct {
	BuildOnComplete func(string) tea.Msg
}

type SetThinkingNumDots

type SetThinkingNumDots struct {
	N int
}

type SetWidth

type SetWidth struct {
	Width int
}

type UsageMessage

type UsageMessage struct {
	Usage jpf.Usage
}

type UserMessageSend

type UserMessageSend struct {
	Message string
}

Jump to

Keyboard shortcuts

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