1212from sentry_sdk .integrations .pydantic_ai import PydanticAIIntegration
1313from sentry_sdk .integrations .pydantic_ai .spans .ai_client import _set_input_messages
1414from sentry_sdk .integrations .pydantic_ai .spans .utils import _set_usage_data
15- from sentry_sdk .integrations .pydantic_ai .spans .execute_tool import execute_tool_span
1615
1716from pydantic_ai import Agent
1817from pydantic_ai .messages import BinaryContent , UserPromptPart
@@ -2360,6 +2359,7 @@ async def test_execute_tool_span_creation(sentry_init, capture_events):
23602359 """
23612360 import sentry_sdk
23622361 from sentry_sdk .integrations .pydantic_ai .spans .execute_tool import (
2362+ execute_tool_span ,
23632363 update_execute_tool_span ,
23642364 )
23652365
@@ -2385,6 +2385,9 @@ async def test_execute_tool_span_with_mcp_type(sentry_init, capture_events):
23852385 Test execute_tool span with MCP tool type.
23862386 """
23872387 import sentry_sdk
2388+ from sentry_sdk .integrations .pydantic_ai .spans .execute_tool import (
2389+ execute_tool_span ,
2390+ )
23882391
23892392 sentry_init (
23902393 integrations = [PydanticAIIntegration ()],
@@ -2409,6 +2412,7 @@ async def test_execute_tool_span_without_prompts(sentry_init, capture_events):
24092412 """
24102413 import sentry_sdk
24112414 from sentry_sdk .integrations .pydantic_ai .spans .execute_tool import (
2415+ execute_tool_span ,
24122416 update_execute_tool_span ,
24132417 )
24142418
@@ -2434,6 +2438,7 @@ async def test_execute_tool_span_with_none_args(sentry_init, capture_events):
24342438 Test execute_tool span with None args.
24352439 """
24362440 import sentry_sdk
2441+ from sentry_sdk .integrations .pydantic_ai .spans .execute_tool import execute_tool_span
24372442
24382443 sentry_init (
24392444 integrations = [PydanticAIIntegration ()],
@@ -2478,6 +2483,7 @@ async def test_update_execute_tool_span_with_none_result(sentry_init, capture_ev
24782483 """
24792484 import sentry_sdk
24802485 from sentry_sdk .integrations .pydantic_ai .spans .execute_tool import (
2486+ execute_tool_span ,
24812487 update_execute_tool_span ,
24822488 )
24832489
0 commit comments