hooks • Rust AI Agent SDK
hooks: Add multiple hooks
hooks
Method
</div>
This is a method of the PluginInfo class in the plugins module.
Add multiple hooks
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph TD
event["Event Trigger"] --> hook["Hook: hooks"]
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 hooks(mut self, hooks: Vec<PluginHook>) -> SelfParameters
ParamField
Vec<PluginHook>No description available.
Returns
ResponseField
SelfThe result of the operation.