Skip to content

Commit 1fc035d

Browse files
.
1 parent 44f1ddb commit 1fc035d

1 file changed

Lines changed: 0 additions & 35 deletions

File tree

‎sentry_sdk/integrations/pydantic_ai/__init__.py‎

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -51,41 +51,6 @@ async def on_model_request(
5151
update_ai_client_span(span, response)
5252
return response
5353

54-
# @hooks.on.tool_execute
55-
# async def sentry_wrap_tool_execute(
56-
# ctx: "RunContext[Any]",
57-
# *,
58-
# call: "ToolCallPart",
59-
# tool_def: "ToolDefinition",
60-
# args: "ValidatedToolArgs",
61-
# handler: "WrapToolExecuteHandler",
62-
# ) -> "Any":
63-
# with execute_tool_span(
64-
# call.tool_name,
65-
# args,
66-
# ctx.agent,
67-
# tool_definition=tool_def,
68-
# ) as span:
69-
# try:
70-
# result = await handler(args)
71-
# update_execute_tool_span(span, result)
72-
# return result
73-
# except ToolRetryError as exc:
74-
# exc_info = sys.exc_info()
75-
# with capture_internal_exceptions():
76-
# from sentry_sdk.integrations.pydantic_ai import (
77-
# PydanticAIIntegration,
78-
# )
79-
# integration = sentry_sdk.get_client().get_integration(
80-
# PydanticAIIntegration,
81-
# )
82-
# if (
83-
# integration is not None
84-
# and integration.handled_tool_call_exceptions
85-
# ):
86-
# _capture_exception(exc, handled=True)
87-
# reraise(*exc_info)
88-
8954
original_init = Agent.__init__
9055

9156
@functools.wraps(original_init)

0 commit comments

Comments
 (0)