Skip to main content

categorize_hooks

Function
This function is defined in the middleware module.
Categorize hooks by their type.

Signature

def categorize_hooks(hooks: List[Callable]) -> Dict[str, List[Callable]]

Parameters

hooks
List
required
No description available.

Returns

Returns
Dict[str, List[Callable]]
before_model, after_model, wrap_model_call, before_tool, after_tool, wrap_tool_call