pub struct HookLifecycleContext {
pub run_id: RunId,
pub agent_id: AgentId,
pub turn_id: Option<TurnId>,
pub attempt_id: Option<AttemptId>,
pub source: SourceRef,
pub destination: Option<DestinationRef>,
pub package_fingerprint: RuntimePackageFingerprint,
pub cancellation: HookCancellationToken,
}Expand description
Holds hook lifecycle context application-layer state or configuration. Use it with the documented coordinator methods; run, journal, event, provider, or port effects are called out on those methods rather than on construction.
Fields§
§run_id: RunIdRun identifier used for lineage, filtering, replay, and dedupe.
agent_id: AgentIdAgent identifier used for lineage, filtering, and ownership checks.
turn_id: Option<TurnId>Turn identifier for one loop turn within a run.
attempt_id: Option<AttemptId>Attempt identifier for retry, repair, provider, or tool execution evidence.
source: SourceRefSource label or ref for this item; it is metadata and does not fetch content by itself.
destination: Option<DestinationRef>Destination label or ref for this item; it is metadata and does not deliver content by itself.
package_fingerprint: RuntimePackageFingerprintDeterministic package fingerprint used for stale checks, package evidence, or replay comparisons.
cancellation: HookCancellationTokenCancellation used by this record or request.
Implementations§
Trait Implementations§
Source§impl Clone for HookLifecycleContext
impl Clone for HookLifecycleContext
Source§fn clone(&self) -> HookLifecycleContext
fn clone(&self) -> HookLifecycleContext
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 HookLifecycleContext
impl Debug for HookLifecycleContext
Source§impl PartialEq for HookLifecycleContext
impl PartialEq for HookLifecycleContext
Source§fn eq(&self, other: &HookLifecycleContext) -> bool
fn eq(&self, other: &HookLifecycleContext) -> bool
self and other values to be equal, and is used by ==.