Skip to main content

HookDecision

Defined in the hooks module.
Rust AI Agent SDK Decision types for hook outputs

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