Documentation
¶
Index ¶
- Constants
- type AssistantStreamMsg
- type AttachmentCountMsg
- type BTWErrorMsg
- type BTWOverlayMsg
- type ClearHistoryMsg
- type DiffBlockMsg
- type HintPriority
- type LogChunkMsg
- type MentionCandidatesMsg
- type PlanEntry
- type PlanUpdateMsg
- type PromptChoice
- type PromptDetail
- type PromptRequestMsg
- type PromptResponse
- type ReasoningStreamMsg
- type SetHintMsg
- type SetRunningMsg
- type SetStatusMsg
- type TaskResultMsg
- type TaskStreamMsg
- type TickStatusMsg
- type ToolStreamMsg
- type UserMessageMsg
Constants ¶
View Source
const ( PromptErrInterrupt = "prompt_interrupted" PromptErrEOF = "prompt_eof" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssistantStreamMsg ¶
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 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 PlanUpdateMsg ¶ added in v0.0.22
type PlanUpdateMsg struct {
Entries []PlanEntry
}
type PromptChoice ¶ added in v0.0.10
type PromptDetail ¶ added in v0.0.18
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 ReasoningStreamMsg ¶
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 TaskResultMsg ¶
type TaskStreamMsg ¶ added in v0.0.15
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
}
Click to show internal directories.
Click to hide internal directories.