René's URL Explorer Experiment


Title: PydanticAIIntegration fails with pydantic-ai-slim 1.63.0: ToolManager has no attribute '_call_tool' · Issue #5518 · getsentry/sentry-python · GitHub

Open Graph Title: PydanticAIIntegration fails with pydantic-ai-slim 1.63.0: ToolManager has no attribute '_call_tool' · Issue #5518 · getsentry/sentry-python

X Title: PydanticAIIntegration fails with pydantic-ai-slim 1.63.0: ToolManager has no attribute '_call_tool' · Issue #5518 · getsentry/sentry-python

Description: PydanticAIIntegration fails with pydantic-ai-slim 1.63.0: ToolManager has no attribute '_call_tool' Description When using pydantic-ai-slim[openai]==1.63.0 with Sentry's auto-enabled Pydantic AI integration, the SDK fails during import/s...

Open Graph Description: PydanticAIIntegration fails with pydantic-ai-slim 1.63.0: ToolManager has no attribute '_call_tool' Description When using pydantic-ai-slim[openai]==1.63.0 with Sentry's auto-enabled Pydantic AI in...

X Description: PydanticAIIntegration fails with pydantic-ai-slim 1.63.0: ToolManager has no attribute '_call_tool' Description When using pydantic-ai-slim[openai]==1.63.0 with Sentry's auto-enabled Py...

Opengraph URL: https://github.com/getsentry/sentry-python/issues/5518

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PydanticAIIntegration fails with pydantic-ai-slim 1.63.0: ToolManager has no attribute '_call_tool'","articleBody":"# PydanticAIIntegration fails with pydantic-ai-slim 1.63.0: ToolManager has no attribute '_call_tool'\n\n## Description\n\nWhen using `pydantic-ai-slim[openai]==1.63.0` with Sentry's auto-enabled Pydantic AI integration, the SDK fails during import/startup with:\n\n```\nAttributeError: type object 'ToolManager' has no attribute '_call_tool'\n```\n\nThe integration patches `ToolManager._call_tool` in `sentry_sdk/integrations/pydantic_ai/patches/tools.py` (line 43: `original_call_tool = ToolManager._call_tool`), but in pydantic-ai-slim 1.63.0 the `ToolManager` class no longer exposes this attribute (or it was moved/renamed in the slim package).\n\n## Environment\n\n- **sentry-sdk**: 2.53.0 (with `[fastapi]`)\n- **pydantic-ai-slim**: 1.63.0 with `[openai]` extra\n- **Python**: 3.11\n\n## Expected behavior\n\nThe Pydantic AI integration should either:\n1. Detect that `ToolManager._call_tool` is not present and skip the tool-execution patch (e.g. with `getattr(ToolManager, '_call_tool', None)`), or\n2. Document compatibility with pydantic-ai-slim and supported versions.\n\n## Actual behavior\n\nAny code path that triggers loading of the Pydantic AI integration (e.g. importing an app that uses pydantic-ai) raises `AttributeError` and prevents startup. For example, pytest collection fails when collecting a test module that does `from src.main import app`.\n\n## Workaround\n\n- Pin **pydantic-ai-slim** to **1.62.x** (e.g. `==1.62.0`), with which the integration works, or\n- Disable the integration: `sentry_sdk.init(..., disabled_integrations=[PydanticAIIntegration])`\n\n## Related\n\n- PR #5084 (fix for new `ToolManager._call_tool()` parameters in pydantic-ai 1.12.0) fixed signature compatibility but not the case where the attribute is missing entirely.\n\n## Reproduction\n\n1. `pip install \"sentry-sdk[fastapi]==2.53.0\" \"pydantic-ai-slim[openai]==1.63.0\"`\n2. In application code, call `sentry_sdk.init(dsn=\"...\", ...)` (integration is auto-enabled when pydantic_ai is installed).\n3. Import a module that uses pydantic_ai (e.g. FastAPI app with agent routes).\n4. Observe `AttributeError: type object 'ToolManager' has no attribute '_call_tool'` during the patch in `_patch_tool_execution()`.\n","author":{"url":"https://github.com/valentinsulzer","@type":"Person","name":"valentinsulzer"},"datePublished":"2026-02-23T20:42:01Z","url":"https://github.com/getsentry/sentry-python/issues/5518"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7d73f22d-8058-5c29-c715-6c5c206af9bb
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDCC4:240CD1:72B15B:94142F:6B00E38C
html-safe-nonce1f8b0ab2a4e6a3ad0126e6ca3aa1c2a0736cbbb31232608ad50f1815236a988d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0M0OjI0MENEMTo3MkIxNUI6OTQxNDJGOjZCMDBFMzhDIiwidmlzaXRvcl9pZCI6IjY0NzAxMzI1MzQwMDM5NTA0NzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1d2739a64a9c9dba29fedf63d4a7ad20e71be42f9a39960fab00663c5ddbe4c4
hovercard-subject-tagissue:3980077335
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-python/5518/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2ae4e13e1a7743613819f489588ee00bfee4e8a376495e2de1bdf0196917a3c9/getsentry/sentry-python/issues/5518
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2ae4e13e1a7743613819f489588ee00bfee4e8a376495e2de1bdf0196917a3c9/getsentry/sentry-python/issues/5518
og:image:altPydanticAIIntegration fails with pydantic-ai-slim 1.63.0: ToolManager has no attribute '_call_tool' Description When using pydantic-ai-slim[openai]==1.63.0 with Sentry's auto-enabled Pydantic AI in...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevalentinsulzer
hostnamegithub.com
expected-hostnamegithub.com
None27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id137814779
octolytics-dimension-repository_nwogetsentry/sentry-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id137814779
octolytics-dimension-repository_network_root_nwogetsentry/sentry-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release624179fb8b88d26ba5bba08894eb60a1c5a1d93d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-python/issues/5518#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fissues%2F5518
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-python%2Fissues%2F5518
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-python
Reloadhttps://github.com/getsentry/sentry-python/issues/5518
Reloadhttps://github.com/getsentry/sentry-python/issues/5518
Reloadhttps://github.com/getsentry/sentry-python/issues/5518
getsentryhttps://github.com/getsentry
sentry-pythonhttps://github.com/getsentry/sentry-python
Codehttps://github.com/getsentry/sentry-python
Issues345 (345)https://github.com/getsentry/sentry-python/issues
Pull requests42 (42)https://github.com/getsentry/sentry-python/pulls
Discussionshttps://github.com/getsentry/sentry-python/discussions
Actionshttps://github.com/getsentry/sentry-python/actions
Security and quality2 (2)https://github.com/getsentry/sentry-python/security
Insightshttps://github.com/getsentry/sentry-python/insights
https://github.com/getsentry/sentry-python
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/5518
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/5518
#5522https://github.com/getsentry/sentry-python/pull/5522
PydanticAIIntegration fails with pydantic-ai-slim 1.63.0: ToolManager has no attribute '_call_tool'https://github.com/getsentry/sentry-python/issues/5518#top
#5522https://github.com/getsentry/sentry-python/pull/5522
https://github.com/sentrivana
Bughttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Bug%22
Integration: Pydantic AIhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Integration%3A%20Pydantic%20AI%22
PythonSDKhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Python%22
https://github.com/valentinsulzer
valentinsulzerhttps://github.com/valentinsulzer
on Feb 23, 2026https://github.com/getsentry/sentry-python/issues/5518#issue-3980077335
fix(pydantic-ai): Do not fail on new ToolManager._call_tool() parameters #5084https://github.com/getsentry/sentry-python/pull/5084
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Feb 23, 2026https://github.com/getsentry/sentry-python/issues/5518#event-23012967822
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Feb 23, 2026https://github.com/getsentry/sentry-python/issues/5518#event-23012969313
https://github.com/apps/linear
linearhttps://github.com/apps/linear
on Feb 23, 2026https://github.com/getsentry/sentry-python/issues/5518#issuecomment-3947228003
Linearhttps://linear.app
PY-2092https://linear.app/getsentry/issue/PY-2092/pydanticaiintegration-fails-with-pydantic-ai-slim-1630-toolmanager-has
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Feb 23, 2026https://github.com/getsentry/sentry-python/issues/5518
https://github.com/sentrivana
sentrivanahttps://github.com/sentrivana
on Feb 24, 2026https://github.com/getsentry/sentry-python/issues/5518#issuecomment-3950114013
@valentinsulzerhttps://github.com/valentinsulzer
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Feb 24, 2026https://github.com/getsentry/sentry-python/issues/5518#event-23026583974
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Feb 24, 2026https://github.com/getsentry/sentry-python/issues/5518
sentrivanahttps://github.com/sentrivana
Integration: Pydantic AIhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Integration%3A%20Pydantic%20AI%22
Bughttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Bug%22
on Feb 24, 2026https://github.com/getsentry/sentry-python/issues/5518#event-23026585900
sentrivanahttps://github.com/sentrivana
on Feb 24, 2026https://github.com/getsentry/sentry-python/issues/5518#event-23027015428
sentrivanahttps://github.com/sentrivana
completedhttps://github.com/getsentry/sentry-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#5522https://github.com/getsentry/sentry-python/pull/5522
on Feb 24, 2026https://github.com/getsentry/sentry-python/issues/5518#event-23035503821
sentrivanahttps://github.com/sentrivana
on Feb 24, 2026https://github.com/getsentry/sentry-python/issues/5518#event-23038933447
fix(pydantic-ai): Adapt to missing `ToolManager._call_tool` (#5522)https://github.com/getsentry/sentry-python/commit/4e4d69a59ce9c7d5adc84a03cd6a3b81a6a462cd
#5522https://github.com/getsentry/sentry-python/pull/5522
4e4d69ahttps://github.com/getsentry/sentry-python/commit/4e4d69a59ce9c7d5adc84a03cd6a3b81a6a462cd
sentrivanahttps://github.com/sentrivana
pydantic-ai integration attribute error #5561https://github.com/getsentry/sentry-python/issues/5561
on Feb 27, 2026https://github.com/getsentry/sentry-python/issues/5518#event-23127914583
sentrivanahttps://github.com/sentrivana
Crash when patching pydantic-ai==1.63.0 #5567https://github.com/getsentry/sentry-python/issues/5567
on Mar 2, 2026https://github.com/getsentry/sentry-python/issues/5518#event-23183716980
dingsdaxhttps://github.com/dingsdax
PythonSDKhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Python%22
on Mar 24, 2026https://github.com/getsentry/sentry-python/issues/5518#event-23842396128
christophaignerhttps://github.com/christophaigner
pydantic-ai integration attribute error #5561https://github.com/getsentry/sentry-python/issues/5561
on Jul 16, 2026https://github.com/getsentry/sentry-python/issues/5518#event-28071433818
christophaignerhttps://github.com/christophaigner
Crash when patching pydantic-ai==1.63.0 #5567https://github.com/getsentry/sentry-python/issues/5567
on Jul 16, 2026https://github.com/getsentry/sentry-python/issues/5518#event-28071434469
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-python/issues/5518
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-python/issues/5518
sentrivanahttps://github.com/sentrivana
Bughttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Bug%22
Integration: Pydantic AIhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Integration%3A%20Pydantic%20AI%22
PythonSDKhttps://github.com/getsentry/sentry-python/issues?q=state%3Aopen%20label%3A%22Python%22
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.