We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5b4d63 commit d0cb35bCopy full SHA for d0cb35b
1 file changed
sentry_sdk/integrations/pydantic_ai/__init__.py
@@ -57,6 +57,7 @@ def setup_once() -> None:
57
- Tool executions
58
"""
59
_patch_agent_run()
60
+ _patch_tool_execution()
61
62
try:
63
from pydantic_ai.capabilities import Hooks # type: ignore
@@ -69,11 +70,9 @@ def setup_once() -> None:
69
70
_patch_model_request()
71
return
72
- _patch_tool_execution()
73
-
74
# Assumptions:
75
# - Model requests within a run are sequential.
76
- # - ctx.metadata is a shared dict instance between hooks.
+ # - ctx.metadata is a shared dictionary instance between hooks.
77
hooks = Hooks()
78
79
@hooks.on.before_model_request # type: ignore
0 commit comments