RunCancelledEvent#
Distinguish UI streams, extension notifications, and external replies. See the guide.
- class zett_agent.extensions.events.RunCancelledEvent(previous_phase, occurred_at, monotonic_ns)[source]#
A request entered CANCELLED; delivered after its PhaseTransitionEvent.
This internal notification also works when the stream consumer has closed. It does not suppress CancelledError or GeneratorExit.
- Parameters:
previous_phase (AgentPhase)
occurred_at (datetime)
monotonic_ns (int)
- previous_phase: AgentPhase#
Active operation interrupted by cancellation.
- occurred_at: datetime#
UTC cancellation time, shared with the corresponding phase transition.
- monotonic_ns: int#
Monotonic cancellation boundary for measuring elapsed time.