pub enum EventPayload {
Show 73 variants
SessionCreated {
origin: SessionOrigin,
short_id: Option<String>,
cwd_identity: CwdIdentity,
creation_selection: RunSelection,
creation_agent: Box<AgentSnapshot>,
runtime_revision: RuntimeRevision,
catalog_revision: CatalogRevision,
provider_state_revision: ProviderStateRevision,
model_revision: ModelRevision,
agent_revision: AgentRevision,
recipe_registry_revision: RecipeRegistryRevision,
manifest_revision: ModelSnapshotRevision,
},
SessionReverted {
through_seq: u64,
},
SessionPermissionOverlaySet {
overlay: SessionPermissionOverlay,
},
SkillLoaded {
name: String,
rendered_body: String,
source_path: String,
args: String,
base_dir: String,
supporting_files: Vec<String>,
},
SkillInvocationNoted {
name: String,
},
AgentMdLoaded {
entries: Vec<AgentMdEntry>,
},
AgentMdSkipped {
path: SafeDisplayText,
byte_length: u64,
},
PluginEventAdded {
plugin: String,
name: String,
payload: Value,
},
PluginDiagnostic {
plugin: String,
kind: PluginDiagnosticKind,
message: String,
count: u64,
},
GoalActivated {
goal_id: GoalId,
objective: String,
revision: u64,
selection: Option<RunSelection>,
},
GoalChecklistRevised {
goal_id: GoalId,
items: Vec<GoalItem>,
revision: u64,
},
GoalLifecycleChanged {
goal_id: GoalId,
status: GoalStatus,
revision: u64,
selection: Option<RunSelection>,
},
ProducerMessageAccepted {
message_id: ProducerMessageId,
producer_owner: ProducerOwner,
mode: ProducerDeliveryMode,
idempotency_key: ProducerIdempotencyKey,
description: SafeDisplayText,
body: String,
reminder: Option<GoalReminderIdentity>,
agent_hop: Option<u32>,
},
ProducerMessageAdmitted {
message_id: ProducerMessageId,
},
ProducerMessagesClaimed {
message_ids: Vec<ProducerMessageId>,
},
ProducerMessagesReleased {
claim_seq: u64,
},
ProducerMessageConsumed {
message_id: ProducerMessageId,
run_id: RunId,
},
ProducerMessageDiscarded {
message_id: ProducerMessageId,
reminder: Option<GoalReminderIdentity>,
producer_owner: Option<ProducerOwner>,
},
RunStarted {Show 13 fields
client_run_id: ClientRunId,
selection: RunSelection,
agent: Box<AgentSnapshot>,
runtime_revision: RuntimeRevision,
catalog_revision: CatalogRevision,
provider_state_revision: ProviderStateRevision,
model_revision: ModelRevision,
agent_revision: AgentRevision,
recipe_registry_revision: RecipeRegistryRevision,
manifest_revision: ModelSnapshotRevision,
selected_suffix: Vec<FrozenModelBinding>,
internal_agents: Vec<FrozenInternalAgentDefinition>,
input_through_seq: u64,
},
MessageInjected {
role: ExtensionMessageRole,
input: String,
},
UserInputAdmitted {
input: String,
},
UserInputSubmitted {
input: String,
},
UserInputTransformed {
original_input: String,
input: String,
},
UserInputRecalled {
input: String,
},
UserInputRecalledV2 {
user_input_seq: u64,
input: String,
},
UserInputApplied {
user_input_seq: u64,
},
DelegatedContextSeeded {
invocation_id: InvocationId,
turns: Vec<DelegatedContextTurn>,
},
RunCompleted {
final_text: Option<String>,
},
RunFailed {
error: SafeErrorMessage,
model_error: Option<ModelErrorSummary>,
resolved_model: Option<ResolvedModelRef>,
},
RunCancelled {
reason: Option<SafeErrorMessage>,
},
RunInterrupted {
reason: Option<SafeErrorMessage>,
},
ModelAttemptStarted {
attempt_id: AttemptId,
attempt_ordinal: u32,
fallback_index: u32,
retry_ordinal: u32,
resolved_model: ResolvedModelRef,
prompt_fingerprint: Sha256Digest,
},
ModelRequestPrepared {
attempt_id: AttemptId,
prompt_fingerprint: Sha256Digest,
},
TextDelta {
attempt_id: AttemptId,
text: String,
},
ReasoningDelta {
attempt_id: AttemptId,
text: String,
},
AttemptAbandoned {
attempt_id: AttemptId,
model_error: Option<ModelErrorSummary>,
},
ModelReplayEvaluated {
attempt_id: AttemptId,
resolved_model: ResolvedModelRef,
ordered_decisions: Vec<ReplayDecision>,
},
ModelTurnCommitted {
attempt_id: AttemptId,
model_turn_seq: u64,
resolved_model: ResolvedModelRef,
input_through_seq: u64,
turn: PersistedModelTurn,
warnings: Vec<SafeErrorMessage>,
},
ModelUsageRecorded {
model_turn_seq: u64,
agent_id: AgentId,
resolved_model: ResolvedModelRef,
usage: Usage,
estimated_cost_pico_usd: Option<u64>,
},
ModelFallback {
from: ResolvedModelRef,
to: ResolvedModelRef,
from_fallback_index: u32,
to_fallback_index: u32,
attempts_on_from: u32,
error: ModelErrorSummary,
},
ToolCallStarted {
start: ToolCallStart,
},
ToolCallProgress {
tool_call_id: ToolCallId,
message: SafeDisplayText,
display: Option<String>,
},
ToolCallTerminated {
termination: ToolCallTermination,
},
ToolOutputElided {
tool_call_id: ToolCallId,
original_bytes: u64,
retained: ArtifactReference,
},
ToolStdinSubmitted {
tool_call_id: ToolCallId,
byte_count: u64,
},
ToolCallLinked {
tool_call_id: ToolCallId,
child_session_id: SessionId,
},
DelegationReserved {Show 13 fields
reservation: DelegationReservation,
child_agent: Box<AgentSnapshot>,
manifest_revision: ModelSnapshotRevision,
runtime_revision: RuntimeRevision,
catalog_revision: CatalogRevision,
provider_state_revision: ProviderStateRevision,
model_revision: ModelRevision,
agent_revision: AgentRevision,
recipe_registry_revision: RecipeRegistryRevision,
selected_suffix: Vec<FrozenModelBinding>,
cache_strategies: Vec<Option<FrozenCacheStrategy>>,
request_fingerprint: Sha256Digest,
request: DelegateRequestPayload,
},
DelegationStarted {
invocation_id: InvocationId,
child_session_id: SessionId,
},
DelegationRunStarted {
invocation_id: InvocationId,
child_run_id: RunId,
},
DelegationRunAttached {
invocation_id: InvocationId,
child_run_id: RunId,
},
DelegationFinished {
invocation_id: InvocationId,
child_session_id: SessionId,
child_run_id: Option<RunId>,
status: SessionStatus,
reason: Option<SafeErrorMessage>,
},
DelegateQueued {
session_id: SessionId,
position: Option<u32>,
},
DelegateFinished {
session_id: SessionId,
short_id: Option<String>,
status: SessionStatus,
preview: String,
total_lines: u64,
},
DelegateFinishedV2 {
invocation_id: InvocationId,
session_id: SessionId,
short_id: Option<String>,
status: SessionStatus,
preview: String,
total_lines: u64,
},
DelegateChildTerminated {
status: SessionStatus,
reason: Option<SafeErrorMessage>,
},
ApprovalRequested {
request: ApprovalRequest,
},
ApprovalEvaluated {
approval_id: ApprovalId,
decision: ApprovalInternalDecision,
},
ApprovalEscalated {
approval_id: ApprovalId,
reason_code: ApprovalReasonCode,
},
ApprovalUserDecisionRecorded {
approval_id: ApprovalId,
client_response_id: ClientResponseId,
decision: ApprovalUserDecision,
feedback: Option<ApprovalFeedback>,
},
ApprovalFinalized {
approval_id: ApprovalId,
decision: ApprovalFinalDecision,
},
ApprovalCancelled {
approval_id: ApprovalId,
reason_code: ApprovalReasonCode,
},
ApprovalDoomLoopDetected {
approval_id: ApprovalId,
operation_fingerprint: OperationFingerprint,
repetitions: u32,
},
TreeApprovalGrantCommitted {
grant: TreeApprovalGrant,
},
InternalAgentStarted {
invocation_id: InternalAgentInvocationId,
internal_run_id: InternalAgentRunId,
kind: InternalAgentKind,
backend: InternalAgentBackend,
call: SafeInternalAgentCall,
},
InternalAgentCompleted {
invocation_id: InternalAgentInvocationId,
internal_run_id: InternalAgentRunId,
kind: InternalAgentKind,
result: SafeInternalAgentResult,
},
InternalAgentUsageRecorded {
internal_run_id: InternalAgentRunId,
kind: InternalAgentKind,
agent_id: AgentId,
resolved_model: ResolvedModelRef,
usage: Usage,
estimated_cost_pico_usd: Option<u64>,
},
InternalAgentFailed {
invocation_id: InternalAgentInvocationId,
internal_run_id: InternalAgentRunId,
kind: InternalAgentKind,
failure: InternalAgentFailure,
},
InternalAgentCancelled {
invocation_id: InternalAgentInvocationId,
internal_run_id: InternalAgentRunId,
kind: InternalAgentKind,
reason: Option<SafeErrorMessage>,
},
InternalAgentInterrupted {
invocation_id: InternalAgentInvocationId,
internal_run_id: InternalAgentRunId,
kind: InternalAgentKind,
reason: Option<SafeErrorMessage>,
},
InternalAgentFallback {
invocation_id: InternalAgentInvocationId,
internal_run_id: InternalAgentRunId,
kind: InternalAgentKind,
from: InternalAgentBackend,
to: InternalAgentBackend,
failure: InternalAgentFailure,
attempts: u32,
},
ContextCheckpointCommitted {
commit: ContextCheckpointCommit,
},
ContextRehydrated {
files: Vec<ContextRehydratedFile>,
},
SessionTitleCommitted {
change: SessionTitleChange,
input_through_seq: u64,
},
}Variants§
SessionCreated
Fields
origin: SessionOriginshort_id: Option<String>Short, tree-unique model-facing handle (<agent_type>_<8 hex>).
Optional and additive: sessions created before handles existed carry
no value and resolve by full UUID only.
cwd_identity: CwdIdentitycreation_selection: RunSelectioncreation_agent: Box<AgentSnapshot>runtime_revision: RuntimeRevisioncatalog_revision: CatalogRevisionprovider_state_revision: ProviderStateRevisionmodel_revision: ModelRevisionagent_revision: AgentRevisionrecipe_registry_revision: RecipeRegistryRevisionmanifest_revision: ModelSnapshotRevisionSessionReverted
SessionPermissionOverlaySet
Fields
overlay: SessionPermissionOverlaySkillLoaded
Fields
SkillInvocationNoted
AgentMdLoaded
Fields
entries: Vec<AgentMdEntry>AgentMdSkipped
PluginEventAdded
PluginDiagnostic
GoalActivated
GoalChecklistRevised
GoalLifecycleChanged
ProducerMessageAccepted
Sole durable message body and per-send delivery mode. Acceptance is valid during an active run without creating a runless UserInputAdmitted.
Fields
message_id: ProducerMessageIdproducer_owner: ProducerOwnermode: ProducerDeliveryModeidempotency_key: ProducerIdempotencyKeydescription: SafeDisplayTextreminder: Option<GoalReminderIdentity>agent_hop: Option<u32>Internal send_message guard metadata: position of this message in
its agent-mail chain (0 for mail sent by a run that has seen no
agent mail). Never rendered into the agent-visible envelope and
never compared for idempotency. Absent on non-Agent producers and on
mail accepted before hop counting existed.
ProducerMessageAdmitted
Run-scoped reference, not a second body or consumption marker. Its event sequence participates in ModelTurnCommitted.input_through_seq coverage.
Fields
message_id: ProducerMessageIdProducerMessagesClaimed
Run-scoped reservation of pending admitted messages. The envelope sequence is the claim token, not proof that provider dispatch occurred.
Fields
message_ids: Vec<ProducerMessageId>ProducerMessagesReleased
Releases the claim identified by a ProducerMessagesClaimed envelope.
ProducerMessageConsumed
Append only after committed model input coverage includes the admission. Recovery repairs missing markers from that commit, never from API selection.
ProducerMessageDiscarded
Pending messages may be discarded by stable owner identity. Historical goal reminder discards omitted producer_owner and remain readable.
Fields
message_id: ProducerMessageIdreminder: Option<GoalReminderIdentity>producer_owner: Option<ProducerOwner>RunStarted
Fields
client_run_id: ClientRunIdselection: RunSelectionagent: Box<AgentSnapshot>runtime_revision: RuntimeRevisioncatalog_revision: CatalogRevisionprovider_state_revision: ProviderStateRevisionmodel_revision: ModelRevisionagent_revision: AgentRevisionrecipe_registry_revision: RecipeRegistryRevisionmanifest_revision: ModelSnapshotRevisionselected_suffix: Vec<FrozenModelBinding>internal_agents: Vec<FrozenInternalAgentDefinition>MessageInjected
UserInputAdmitted
UserInputSubmitted
UserInputTransformed
UserInputRecalled
UserInputRecalledV2
UserInputApplied
DelegatedContextSeeded
RunCompleted
RunFailed
Fields
error: SafeErrorMessagemodel_error: Option<ModelErrorSummary>resolved_model: Option<ResolvedModelRef>RunCancelled
Fields
reason: Option<SafeErrorMessage>RunInterrupted
Fields
reason: Option<SafeErrorMessage>ModelAttemptStarted
ModelRequestPrepared
TextDelta
ReasoningDelta
AttemptAbandoned
Fields
model_error: Option<ModelErrorSummary>The model error that ended the attempt (retry, fallback, or recovery trigger).
ModelReplayEvaluated
ModelTurnCommitted
ModelUsageRecorded
Fields
resolved_model: ResolvedModelRefModelFallback
ToolCallStarted
Fields
start: ToolCallStartToolCallProgress
ToolCallTerminated
Fields
termination: ToolCallTerminationToolOutputElided
ToolStdinSubmitted
ToolCallLinked
DelegationReserved
Fields
reservation: DelegationReservationchild_agent: Box<AgentSnapshot>manifest_revision: ModelSnapshotRevisionruntime_revision: RuntimeRevisioncatalog_revision: CatalogRevisionprovider_state_revision: ProviderStateRevisionmodel_revision: ModelRevisionagent_revision: AgentRevisionrecipe_registry_revision: RecipeRegistryRevisionselected_suffix: Vec<FrozenModelBinding>cache_strategies: Vec<Option<FrozenCacheStrategy>>request_fingerprint: Sha256Digestrequest: DelegateRequestPayloadDelegationStarted
DelegationRunStarted
DelegationRunAttached
DelegationFinished
DelegateQueued
DelegateFinished
Fields
short_id: Option<String>Handle rendered into the notification body. Additive and optional: pre-handle logs render the UUID.
status: SessionStatusDelegateFinishedV2
Fields
invocation_id: InvocationIdshort_id: Option<String>Handle rendered into the notification body. Additive and optional: pre-handle logs render the UUID.
status: SessionStatusDelegateChildTerminated
ApprovalRequested
Fields
request: ApprovalRequestApprovalEvaluated
ApprovalEscalated
ApprovalUserDecisionRecorded
Fields
approval_id: ApprovalIdclient_response_id: ClientResponseIddecision: ApprovalUserDecisionfeedback: Option<ApprovalFeedback>ApprovalFinalized
ApprovalCancelled
ApprovalDoomLoopDetected
TreeApprovalGrantCommitted
Fields
grant: TreeApprovalGrantInternalAgentStarted
Fields
invocation_id: InternalAgentInvocationIdinternal_run_id: InternalAgentRunIdkind: InternalAgentKindbackend: InternalAgentBackendcall: SafeInternalAgentCallInternalAgentCompleted
Fields
invocation_id: InternalAgentInvocationIdinternal_run_id: InternalAgentRunIdkind: InternalAgentKindresult: SafeInternalAgentResultInternalAgentUsageRecorded
InternalAgentFailed
Fields
invocation_id: InternalAgentInvocationIdinternal_run_id: InternalAgentRunIdkind: InternalAgentKindfailure: InternalAgentFailureInternalAgentCancelled
Fields
invocation_id: InternalAgentInvocationIdinternal_run_id: InternalAgentRunIdkind: InternalAgentKindreason: Option<SafeErrorMessage>InternalAgentInterrupted
Fields
invocation_id: InternalAgentInvocationIdinternal_run_id: InternalAgentRunIdkind: InternalAgentKindreason: Option<SafeErrorMessage>InternalAgentFallback
Fields
invocation_id: InternalAgentInvocationIdinternal_run_id: InternalAgentRunIdkind: InternalAgentKindfrom: InternalAgentBackendfailure: InternalAgentFailureContextCheckpointCommitted
Fields
commit: ContextCheckpointCommitContextRehydrated
Fields
files: Vec<ContextRehydratedFile>SessionTitleCommitted
Trait Implementations§
Source§impl Clone for EventPayload
impl Clone for EventPayload
Source§fn clone(&self) -> EventPayload
fn clone(&self) -> EventPayload
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EventPayload
impl Debug for EventPayload
Source§impl<'de> Deserialize<'de> for EventPayload
impl<'de> Deserialize<'de> for EventPayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for EventPayload
impl JsonSchema for EventPayload
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for EventPayload
impl PartialEq for EventPayload
Source§fn eq(&self, other: &EventPayload) -> bool
fn eq(&self, other: &EventPayload) -> bool
self and other values to be equal, and is used by ==.