Events#
Distinguish UI streams, extension notifications, and external replies.
Read the walkthrough before consulting individual signatures.
Interface |
Purpose |
|---|---|
Dispatch streamed events to optional asynchronous callbacks. |
|
One UI-facing event emitted by |
|
Events consumed by a streaming UI or application. |
|
Exclusive execution phase of one request-scoped AgentState. |
|
Own and validate every transition in the Agent request state machine. |
|
Validate and publish output boundaries for one model call. |
|
A completed context compaction. |
|
The answer-content segment of one model call ended. |
|
The first non-empty answer-content delta of one model call arrived. |
|
Immutable notification broadcast or routed to a named extension. |
|
Request that the active Agent process one internal instruction. |
|
One newly produced raw message; restoration and compaction do not emit it. |
|
Persistable timing measurements for one immutable Raw Log message. |
|
One validated request-state transition published after the phase changes. |
|
The reasoning segment of one model call ended. |
|
The first non-empty reasoning delta of one model call arrived. |
|
A request entered CANCELLED; delivered after its PhaseTransitionEvent. |
|
Urgent user input replacing continuation at the next model/tool boundary. |