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 root session. Raw measurements only: percentages are for clients to derive.
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
One configured MCP server. A local server is described by command and args; a remote one by url, with command empty. tools is empty for a server that failed to connect or exposed nothing.
McpToolInfo
McpToolParam
ModelSpec
Notice
Something reported outside the conversation: one line, with any child lines under it. A bare string is also read, as a notice with that headline alone.
OpMsg
ProviderSpec
The resolved provider and its explicit credential choice. The endpoint includes environment overrides. Model lists are published by ante catalog; unknown fields are ignored.
QuestionAnswer
One question’s answer in Op::QuestionResponse.
QuestionOption
One selectable option of a QuestionSpec.
QuestionSpec
One question in a TurnPauseReason::Question pause.
Rollover
Asks Op::StartSession for a rollover. instructions optionally steer the handoff, as they steer the summary of Op::Compact.
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 and wins over every default. An unset field means the host’s current default (the user’s settings, else built-in), 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.
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
Size/cost class of a model, set once per model in the catalog: roughly how large and costly it is to run, independent of the per-request Effort and of context_limit. Ordered Feather < Middle < Heavy.

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.