Add Definition • Rust AI Agent SDK
add_definition: Add a hook definition
add_definition
Method
</div>
This is a method of the HookRegistry class in the hooks module.
Add a hook definition
Signature
def add_definition(&mut self, hook: HookDefinition) -> &mut SelfParameters
ParamField
HookDefinitionNo description available.
Returns
ResponseField
&mut SelfThe result of the operation.