Expand description
AgentEvent — streaming events emitted by the Engine.
Structs§
- Context
Usage - How much of the context window a session is using, after a turn.
- Queued
User Message - A user message that arrived while a turn was running.
- Tool
Info - Summary info for a registered tool.
- Turn
Failure - A turn’s failure, as the engine, the pool and the wire all carry it.
- Usage
Breakdown - How a turn’s
usagedivides: 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§
- Agent
Event - Events emitted by the Engine during a turn.
- Compact
Cause - What set a compaction off (
AgentEvent::CompactStarted). - Compact
Outcome - Why a compaction left the history as it was (
AgentEvent::CompactEnded). - Failure
Kind - How a turn failed, in the terms a host decides on: whether to send it again, when, and whether doing so repeats something.
- Host
Call Withdrawal - Why the engine stopped waiting on a host call with no answer.
- Prompt
Resolution - How an ask ended (
AgentEvent::PromptResolved). - Team
Stage Status - Lifecycle point a
AgentEvent::TeamProgressevent reports. - Withdrawal
Reason - 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, not42.0) so hosts can read line and byte counts as integers; only a fractional figure keeps its fraction.