Hook Result • AI Agent SDK
HookResult: Result from a hook execution.
HookResult
Defined in the types module.
AI Agent
Result from a hook execution.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph TD
event["Event Trigger"] --> hook["Hook: HookResult"]
hook --> decision{"Decision"}
decision -- "Allow" --> proc["Process"]
decision -- "Deny" --> block["Block"]
style hook fill:#189AB4,color:#fff
style event fill:#8B0000,color:#fff
style proc fill:#8B0000,color:#fff
style block fill:#8B0000,color:#fffProperties
ResponseField
HookDecisionNo description available.
ResponseField
Optional[str]No description available.
ResponseField
OptionalNo description available.
ResponseField
Optional[str]No description available.
ResponseField
boolNo description available.
Methods
allow()
Create an allow result.
deny()Create a deny result.
block()Create a block result.
ask()Create an ask result (requires user confirmation).
is_allowed()Check if the result allows execution.
is_denied()Check if the result denies execution.
Source
View on GitHubpraisonaiagents/hooks/types.py at line 271