tuievents

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PromptErrInterrupt = "prompt_interrupted"
	PromptErrEOF       = "prompt_eof"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AssistantStreamMsg

type AssistantStreamMsg struct {
	Kind  string
	Text  string
	Final bool
}

AssistantStreamMsg carries assistant answer chunks for TUI block rendering. When Final is true, Text is the full finalized assistant answer.

type AttachmentCountMsg

type AttachmentCountMsg struct {
	Count int
}

type BTWErrorMsg added in v0.0.24

type BTWErrorMsg struct {
	Text string
}

type BTWOverlayMsg added in v0.0.24

type BTWOverlayMsg struct {
	Text  string
	Final bool
}

type ClearHistoryMsg

type ClearHistoryMsg struct{}

ClearHistoryMsg clears viewport conversation history in TUI.

type DiffBlockMsg

type DiffBlockMsg struct {
	Tool      string
	Path      string
	Created   bool
	Hunk      string
	Old       string
	New       string
	Preview   string
	Truncated bool
}

DiffBlockMsg carries a structured PATCH diff block for rich TUI rendering.

type HintPriority added in v0.0.20

type HintPriority int
const (
	HintPriorityUnspecified HintPriority = iota
	HintPriorityLow
	HintPriorityNormal
	HintPriorityHigh
	HintPriorityCritical
)

type LogChunkMsg

type LogChunkMsg struct {
	Chunk string
}

type MentionCandidatesMsg

type MentionCandidatesMsg struct {
	Query      string
	Candidates []string
	Latency    time.Duration
}

type PlanEntry added in v0.0.22

type PlanEntry struct {
	Content string
	Status  string
}

type PlanUpdateMsg added in v0.0.22

type PlanUpdateMsg struct {
	Entries []PlanEntry
}

type PromptChoice added in v0.0.10

type PromptChoice struct {
	Label         string
	Value         string
	Detail        string
	AlwaysVisible bool
}

type PromptDetail added in v0.0.18

type PromptDetail struct {
	Label    string
	Value    string
	Emphasis bool
}

type PromptRequestMsg

type PromptRequestMsg struct {
	Title              string
	Prompt             string
	Details            []PromptDetail
	Secret             bool
	Choices            []PromptChoice
	DefaultChoice      string
	SelectedChoices    []string
	Filterable         bool
	MultiSelect        bool
	AllowFreeformInput bool
	Response           chan PromptResponse
}

type PromptResponse

type PromptResponse struct {
	Line string
	Err  error
}

type ReasoningStreamMsg

type ReasoningStreamMsg struct {
	Text  string
	Final bool
}

ReasoningStreamMsg carries assistant reasoning chunks for TUI block rendering. When Final is true, Text is the full finalized reasoning text.

type SetHintMsg

type SetHintMsg struct {
	Hint           string
	ClearAfter     time.Duration
	Priority       HintPriority
	ClearOnMessage bool
}

type SetRunningMsg

type SetRunningMsg struct {
	Running bool
}

type SetStatusMsg

type SetStatusMsg struct {
	Model   string
	Context string
}

type TaskResultMsg

type TaskResultMsg struct {
	ExitNow         bool
	Err             error
	Interrupted     bool
	ContinueRunning bool
}

type TaskStreamMsg added in v0.0.15

type TaskStreamMsg struct {
	Label  string
	Tool   string
	TaskID string
	CallID string
	Stream string
	Chunk  string
	State  string
	Reset  bool
	Final  bool
}

type TickStatusMsg

type TickStatusMsg struct{}

type ToolStreamMsg added in v0.0.10

type ToolStreamMsg = TaskStreamMsg

type UserMessageMsg added in v0.0.23

type UserMessageMsg struct {
	Text string
}

Jump to

Keyboard shortcuts

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