Hook Decision • Rust AI Agent SDK

HookDecision: Decision types for hook outputs

HookDecision

Defined in the hooks module.

Rust AI Agent SDK

Decision types for hook outputs

Diagram

Allow

Deny

Event Trigger

Hook: HookDecision

Decision

Process

Block

Fields

NameTypeDescription
Allowvariant–
thevariant–
operationvariant–
tovariant–
proceedvariant–
defaultvariantAllow the operation to proceed
AllowvariantAllow the operation to proceed
Denyvariant–
thevariant–
operationvariant–
DenyvariantDeny the operation
Blockvariant–
thevariant–
operationvariant–
BlockvariantBlock the operation (stronger than deny)
Askvariant–
forvariant–
uservariant–
confirmationvariant–
AskvariantAsk for user confirmation

Source

View on GitHub

praisonai/src/hooks/mod.rs at line 0


Related Documentation