pub struct HookInput {
pub hook_id: HookId,
pub point: HookPoint,
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 view: HookView,
pub policy_refs: Vec<PolicyRef>,
pub cancellation: HookCancellationToken,
}Expand description
Describes the hook input portion of a runtime package snapshot. Use it when package authors or tests need explicit package configuration; validation and activation happen in package/runtime coordinators.
Fields§
§hook_id: HookIdStable hook id used for typed lineage, lookup, or dedupe.
point: HookPointPoint used by this record or request.
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.
view: HookViewView used by this record or request.
policy_refs: Vec<PolicyRef>Policy references that govern admission, projection, execution, or delivery.
cancellation: HookCancellationTokenCancellation used by this record or request.