Hook Count • Rust AI Agent SDK
hook_count: Get hook count for an event
hook_count
Method
</div>
This is a method of the HookRegistry class in the hooks module.
Get hook count for an event
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph TD
event["Event Trigger"] --> hook["Hook: hook_count"]
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:#fffSignature
def hook_count(&self, event: HookEvent) -> usizeParameters
ParamField
HookEventNo description available.
Returns
ResponseField
usizeThe result of the operation.