Skip to content

regression in 2.55.0: pydantic-ai integration fails at startup (AttributeError: ToolManager has no attribute '_call_tool') #5686

@jychp

Description

@jychp

How do you use Sentry?

Sentry Saas (sentry.io)

Version

2.55.0

Steps to Reproduce

  1. Install sentry-sdk==2.55.0 and pydantic-ai-slim==1.69.0
  2. Initialize Sentry with PydanticAIIntegration
  3. Start the application

Expected Result

Sentry initializes successfully with no errors.

Actual Result

File "/app/.venv/lib/python3.13/site-packages/sentry_sdk/integrations/pydantic_ai/patches/tools.py", line 41, in _patch_tool_execution                                                                                                                                                                    
original_call_tool = ToolManager._call_tool                                                                                                                                                                                                                                                               
AttributeError: type object 'ToolManager' has no attribute '_call_tool'

This is a regression introduced in 2.55.0. The same setup works fine with 2.54.0:

sentry-sdk pydantic-ai-slim Result
2.54.0 1.69.0 ✅ Works
2.55.0 1.69.0 ❌ Broken

Metadata

Metadata

Assignees

No fields configured for issues without a type.

Projects

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions