Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReportMode ¶
type ReportMode int
const ( // ReportNoStatus streams only (no status indicator). ReportNoStatus ReportMode = iota // ReportJustStatus reports to status indicator only. ReportJustStatus // ReportStreamAndStatus reports to both stream and status indicator. ReportStreamAndStatus )
type Update ¶
type Update struct {
// Message is the content to deliver to the UI or client.
Message string
// Reasoning is the reasoning/thinking content (for extended thinking models).
Reasoning string
// AddNewLine appends a newline to Message if one is not already present.
AddNewLine bool
// Mode controls where the message should be surfaced.
Mode ReportMode
// Ephemeral marks the update as transient (should not persist once superseded).
Ephemeral bool
// VerificationAgent indicates this update is from the verification agent and should replace
// previous verification agent messages (compact display mode).
VerificationAgent bool
}
Update describes a progress or streaming message emitted by the orchestrator or tools.
func Normalize ¶
Normalize ensures the update reflects requested formatting (currently newline handling).
func VerificationAgentUpdate ¶
func VerificationAgentUpdate(message string, mode ReportMode) Update
VerificationAgentUpdate creates a progress update marked as coming from the verification agent. This indicates the UI should display this message in compact mode (replacing previous verification messages).
func (Update) ShouldStatus ¶
ShouldStatus returns true if the update should be shown in a status indicator.
func (Update) ShouldStream ¶
ShouldStream returns true if the update should be streamed to the user-facing content channel.
Click to show internal directories.
Click to hide internal directories.