Skip to main content
ExampleDescription
Pre And Post HooksDemonstrates pre and post hooks.
Tool HookPre-hook logic: this runs before the tool is called.
Tool Hook In ToolkitTool Hooks Tool Hook In Toolkit.
Tool Hook In Toolkit With StateWhen used as a tool hook, this function will receive the contextual Agent, function_name, etc as parameters.
Tool Hook In Toolkit With State NestedWhen used as a tool hook, this function will receive the contextual Agent, function_name, etc as parameters.
Tool Hooks In Toolkit NestedRemove name from result to sanitize the output.