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

python
def add_definition(&mut self, hook: HookDefinition) -> &mut Self

Parameters

ParamField HookDefinition

No description available.

Returns

ResponseField &mut Self

The result of the operation.