Skip to main content

Module event

Module event 

Source
Expand description

AgentEvent — streaming events emitted by the Engine.

Structs§

ContextUsage
How much of the context window a session is using, after a turn.
QueuedUserMessage
A user message that arrived while a turn was running.
ToolInfo
Summary info for a registered tool.
TurnFailure
A turn’s failure, as the engine, the pool and the wire all carry it.
UsageBreakdown
How a turn’s usage divides: its agent’s own model calls, the calls made on its side (compaction, memory, web search and extraction), and its delegates’ (sub-agents, team members, theirs included).

Enums§

AgentEvent
Events emitted by the Engine during a turn.
CompactCause
What set a compaction off (AgentEvent::CompactStarted).
CompactOutcome
Why a compaction left the history as it was (AgentEvent::CompactEnded).
FailureKind
How a turn failed, in the terms a host decides on: whether to send it again, when, and whether doing so repeats something.
HostCallWithdrawal
Why the engine stopped waiting on a host call with no answer.
PromptResolution
How an ask ended (AgentEvent::PromptResolved).
TeamStageStatus
Lifecycle point a AgentEvent::TeamProgress event reports.
WithdrawalReason
Why the engine stopped waiting on an ask with no answer.

Functions§

progress_count_json
A progress figure as it goes on the wire: whole numbers as JSON integers (42, not 42.0) so hosts can read line and byte counts as integers; only a fractional figure keeps its fraction.