From d64355463ceb3aae29480457273dd271e8c679f9 Mon Sep 17 00:00:00 2001 From: Dean Schmigelski Date: Mon, 4 Aug 2025 09:56:20 -0400 Subject: [PATCH] fix(hooks): clarify that hooks is accessible through agent object --- docs/user-guide/concepts/agents/hooks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user-guide/concepts/agents/hooks.md b/docs/user-guide/concepts/agents/hooks.md index a239823d..2afcbe03 100644 --- a/docs/user-guide/concepts/agents/hooks.md +++ b/docs/user-guide/concepts/agents/hooks.md @@ -29,7 +29,7 @@ agent = Agent() def my_callback(event: BeforeInvocationEvent) -> None: print("Custom callback triggered") -hooks.add_callback(BeforeInvocationEvent, my_callback) +agent.hooks.add_callback(BeforeInvocationEvent, my_callback) ``` ### Creating a Hook Provider