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
Fields
| Name | Type | Description |
|---|---|---|
Allow | variant | – |
the | variant | – |
operation | variant | – |
to | variant | – |
proceed | variant | – |
default | variant | Allow the operation to proceed |
Allow | variant | Allow the operation to proceed |
Deny | variant | – |
the | variant | – |
operation | variant | – |
Deny | variant | Deny the operation |
Block | variant | – |
the | variant | – |
operation | variant | – |
Block | variant | Block the operation (stronger than deny) |
Ask | variant | – |
for | variant | – |
user | variant | – |
confirmation | variant | – |
Ask | variant | Ask for user confirmation |
Source
View on GitHubpraisonai/src/hooks/mod.rs at line 0