Skip to main content

EventPayload

Enum EventPayload 

Source
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

§short_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: 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

Fields

§through_seq: u64
§

SessionPermissionOverlaySet

§

SkillLoaded

Fields

§name: String
§rendered_body: String
§source_path: String
§args: String
§base_dir: String
§supporting_files: Vec<String>
§

SkillInvocationNoted

Fields

§name: String
§

AgentMdLoaded

Fields

§

AgentMdSkipped

Fields

§byte_length: u64
§

PluginEventAdded

Fields

§plugin: String
§name: String
§payload: Value
§

PluginDiagnostic

Fields

§plugin: String
§message: String
§count: u64
§

GoalActivated

Fields

§goal_id: GoalId
§objective: String
§revision: u64
§

GoalChecklistRevised

Fields

§goal_id: GoalId
§items: Vec<GoalItem>
§revision: u64
§

GoalLifecycleChanged

Fields

§goal_id: GoalId
§status: GoalStatus
§revision: u64
§

ProducerMessageAccepted

Sole durable message body and per-send delivery mode. Acceptance is valid during an active run without creating a runless UserInputAdmitted.

Fields

§producer_owner: ProducerOwner
§idempotency_key: ProducerIdempotencyKey
§description: SafeDisplayText
§body: String
§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

§

ProducerMessagesClaimed

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.

Fields

§claim_seq: u64
§

ProducerMessageConsumed

Append only after committed model input coverage includes the admission. Recovery repairs missing markers from that commit, never from API selection.

Fields

§run_id: RunId
§

ProducerMessageDiscarded

Pending messages may be discarded by stable owner identity. Historical goal reminder discards omitted producer_owner and remain readable.

Fields

§producer_owner: Option<ProducerOwner>
§

RunStarted

Fields

§client_run_id: ClientRunId
§selection: RunSelection
§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>
§input_through_seq: u64
§

MessageInjected

§

UserInputAdmitted

Fields

§input: String
§

UserInputSubmitted

Fields

§input: String
§

UserInputTransformed

Fields

§original_input: String
§input: String
§

UserInputRecalled

Fields

§input: String
§

UserInputRecalledV2

Fields

§user_input_seq: u64
§input: String
§

UserInputApplied

Fields

§user_input_seq: u64
§

DelegatedContextSeeded

Fields

§invocation_id: InvocationId
§

RunCompleted

Fields

§final_text: Option<String>
§

RunFailed

Fields

§resolved_model: Option<ResolvedModelRef>
§

RunCancelled

Fields

§

RunInterrupted

Fields

§

ModelAttemptStarted

Fields

§attempt_id: AttemptId
§attempt_ordinal: u32
§fallback_index: u32
§retry_ordinal: u32
§resolved_model: ResolvedModelRef
§prompt_fingerprint: Sha256Digest
§

ModelRequestPrepared

Fields

§attempt_id: AttemptId
§prompt_fingerprint: Sha256Digest
§

TextDelta

Fields

§attempt_id: AttemptId
§text: String
§

ReasoningDelta

Fields

§attempt_id: AttemptId
§text: String
§

AttemptAbandoned

Fields

§attempt_id: AttemptId
§model_error: Option<ModelErrorSummary>

The model error that ended the attempt (retry, fallback, or recovery trigger).

§

ModelReplayEvaluated

Fields

§attempt_id: AttemptId
§resolved_model: ResolvedModelRef
§ordered_decisions: Vec<ReplayDecision>
§

ModelTurnCommitted

Fields

§attempt_id: AttemptId
§model_turn_seq: u64
§resolved_model: ResolvedModelRef
§input_through_seq: u64
§

ModelUsageRecorded

Fields

§model_turn_seq: u64
§agent_id: AgentId
§resolved_model: ResolvedModelRef
§usage: Usage
§estimated_cost_pico_usd: Option<u64>
§

ModelFallback

Fields

§from_fallback_index: u32
§to_fallback_index: u32
§attempts_on_from: u32
§

ToolCallStarted

Fields

§

ToolCallProgress

Fields

§tool_call_id: ToolCallId
§display: Option<String>
§

ToolCallTerminated

Fields

§

ToolOutputElided

Fields

§tool_call_id: ToolCallId
§original_bytes: u64
§

ToolStdinSubmitted

Fields

§tool_call_id: ToolCallId
§byte_count: u64
§

ToolCallLinked

Fields

§tool_call_id: ToolCallId
§child_session_id: SessionId
§

DelegationReserved

Fields

§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
§

DelegationStarted

Fields

§invocation_id: InvocationId
§child_session_id: SessionId
§

DelegationRunStarted

Fields

§invocation_id: InvocationId
§child_run_id: RunId
§

DelegationRunAttached

Fields

§invocation_id: InvocationId
§child_run_id: RunId
§

DelegationFinished

Fields

§invocation_id: InvocationId
§child_session_id: SessionId
§child_run_id: Option<RunId>
§

DelegateQueued

Fields

§session_id: SessionId
§position: Option<u32>
§

DelegateFinished

Fields

§session_id: SessionId
§short_id: Option<String>

Handle rendered into the notification body. Additive and optional: pre-handle logs render the UUID.

§preview: String
§total_lines: u64
§

DelegateFinishedV2

Fields

§invocation_id: InvocationId
§session_id: SessionId
§short_id: Option<String>

Handle rendered into the notification body. Additive and optional: pre-handle logs render the UUID.

§preview: String
§total_lines: u64
§

DelegateChildTerminated

§

ApprovalRequested

Fields

§

ApprovalEvaluated

Fields

§approval_id: ApprovalId
§

ApprovalEscalated

Fields

§approval_id: ApprovalId
§

ApprovalUserDecisionRecorded

Fields

§approval_id: ApprovalId
§client_response_id: ClientResponseId
§

ApprovalFinalized

Fields

§approval_id: ApprovalId
§

ApprovalCancelled

Fields

§approval_id: ApprovalId
§

ApprovalDoomLoopDetected

Fields

§approval_id: ApprovalId
§operation_fingerprint: OperationFingerprint
§repetitions: u32
§

TreeApprovalGrantCommitted

Fields

§

InternalAgentStarted

§

InternalAgentCompleted

§

InternalAgentUsageRecorded

Fields

§internal_run_id: InternalAgentRunId
§agent_id: AgentId
§resolved_model: ResolvedModelRef
§usage: Usage
§estimated_cost_pico_usd: Option<u64>
§

InternalAgentFailed

§

InternalAgentCancelled

§

InternalAgentInterrupted

§

InternalAgentFallback

§

ContextCheckpointCommitted

§

ContextRehydrated

§

SessionTitleCommitted

Fields

§input_through_seq: u64

Trait Implementations§

Source§

impl Clone for EventPayload

Source§

fn clone(&self) -> EventPayload

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EventPayload

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for EventPayload

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl JsonSchema for EventPayload

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more
Source§

impl PartialEq for EventPayload

Source§

fn eq(&self, other: &EventPayload) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for EventPayload

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for EventPayload

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.