We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b332a72 commit ce3d50dCopy full SHA for ce3d50d
docs/user-guide/concepts/agents/hooks.md
@@ -29,7 +29,7 @@ agent = Agent()
29
def my_callback(event: BeforeInvocationEvent) -> None:
30
print("Custom callback triggered")
31
32
-hooks.add_callback(BeforeInvocationEvent, my_callback)
+agent.hooks.add_callback(BeforeInvocationEvent, my_callback)
33
```
34
35
### Creating a Hook Provider
0 commit comments