Skip to main content

Module msg

Module msg 

Source

Structs§

ContextBreakdown
Per-category breakdown of context-window occupancy.
ContextWindow
Context-window occupancy snapshot for the current (root) session, surfaced in the statusline. Raw measurements only — any percentage is a presentation concern derived at the edges, with no policy (e.g. auto-compaction) baked in.
EventMsg
ExtensionRefreshed
The session’s MCP servers and their tools, sent for session_id as the servers come online. skills and subagents repeat the lists the session’s SessionStart announced.
MalformedToolArgs
McpServerInfo
McpToolInfo
McpToolParam
ModelSpec
OpMsg
ProviderSpec
The provider a session resolved to.
QuestionAnswer
One question’s answer in Op::QuestionResponse.
QuestionOption
One selectable option of a QuestionSpec.
QuestionSpec
One question in a TurnPauseReason::Question pause.
SessionInfo
A session’s announced state: its identity and mutable settings (SessionStart, SessionUpdated) plus the capabilities it was equipped with, which are fixed for the session’s lifetime.
SessionRequest
The requested session configuration — the payload of Op::StartSession. A set field is pinned: it wins over every default. An unset field means “the host’s default for this, now”: the daemon fills it from the user’s settings (re-read at the session boundary) or its built-in default. There is exactly one meaning, regardless of who built the value — never “leave unchanged”.
SessionUpdate
Partial update to a live session’s mutable state. Each field is optional so a caller patches only what changed; absent fields are left untouched. Catalog-dependent fields are resolved before the update takes effect.
SkillMetadata
SubagentMetadata
ToolDecision
A decision for one requested tool call.
ToolEnd
ToolUpdate
ToolUse
Usage
Token usage for one model response.

Enums§

AmbientKind
Which ambient feature produced an Evt::Ambient. Both run off the main conversation on a cheap model; they differ in trigger, prompt, and sink.
Effort
Requested output/reasoning effort for model turns, on an ordinal scale.
Evt
GoalCommand
A /goal sub-command carried by Op::Goal.
Op
PermissionMode
QuestionReply
What the user did with a TurnPauseReason::Question pause.
ReviewDecision
Scope
SessionEndReason
ToolEndStatus
TurnEndStatus
TurnPauseReason
WeightClass
Innate size/cost class of a model, set once per model in the catalog.

Constants§

MISSING_TOOL_NAME
Sentinel ToolUse::name for a call whose stream never delivered a function name; always paired with malformed_args.

Functions§

event_msg
event stamped with a fresh event id and the current time, correlated to the op it answers (parent), if any.
op_msg
op stamped with a fresh op id.