Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
208a4f5
[do not merge]: generate tox
alexander-alderman-webb Nov 7, 2025
d15d5bf
tests(huggingface): Avoid version
alexander-alderman-webb Nov 7, 2025
acb92f3
hold pydantic back
alexander-alderman-webb Nov 7, 2025
a921cc4
fix(pydantic-ai): Do not fail on new ToolManager._call_tool() parameters
alexander-alderman-webb Nov 7, 2025
549f5a7
.
alexander-alderman-webb Nov 10, 2025
0c4a45b
.
alexander-alderman-webb Nov 10, 2025
79e96d2
.
alexander-alderman-webb Nov 10, 2025
7f969a9
.
alexander-alderman-webb Nov 10, 2025
f9aa7e1
.
alexander-alderman-webb Nov 10, 2025
2955e25
ci: Pin Pytest version for 3.14 Django tests
alexander-alderman-webb Nov 10, 2025
15c104a
pytest iteration
alexander-alderman-webb Nov 10, 2025
6acae8f
new version
alexander-alderman-webb Nov 10, 2025
fb54be9
iteration
alexander-alderman-webb Nov 10, 2025
fdef991
.
alexander-alderman-webb Nov 10, 2025
424a116
fix
alexander-alderman-webb Nov 10, 2025
cb69a60
.
alexander-alderman-webb Nov 10, 2025
233eb58
forgot to push config.py
alexander-alderman-webb Nov 10, 2025
2e31bc6
Merge branch 'webb/pin-pytest' into webb/run-ci
alexander-alderman-webb Nov 10, 2025
8cfab8a
Merge branch 'webb/run-ci' into webb/pydantic-ai-fix
alexander-alderman-webb Nov 10, 2025
798d73e
.
alexander-alderman-webb Nov 10, 2025
ca198bc
skip flaky tests
alexander-alderman-webb Nov 10, 2025
6b76b44
Merge branch 'master' into webb/run-ci
alexander-alderman-webb Nov 11, 2025
b5647e0
merge
alexander-alderman-webb Nov 11, 2025
4a1123d
Merge branch 'master' into webb/pydantic-ai-fix
alexander-alderman-webb Nov 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions sentry_sdk/integrations/pydantic_ai/patches/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def _patch_tool_execution():
original_call_tool = ToolManager._call_tool

@wraps(original_call_tool)
async def wrapped_call_tool(self, call, allow_partial, wrap_validation_errors):
# type: (Any, Any, bool, bool) -> Any
async def wrapped_call_tool(self, call, *args, **kwargs):
# type: (Any, Any, *Any, **Any) -> Any

# Extract tool info before calling original
name = call.tool_name
Expand All @@ -64,18 +64,14 @@ async def wrapped_call_tool(self, call, allow_partial, wrap_validation_errors):

with execute_tool_span(name, args_dict, agent, tool_type=tool_type) as span:
try:
result = await original_call_tool(
self, call, allow_partial, wrap_validation_errors
)
result = await original_call_tool(self, call, *args, **kwargs)
update_execute_tool_span(span, result)
return result
except Exception as exc:
_capture_exception(exc)
raise exc from None

# No span context - just call original
return await original_call_tool(
self, call, allow_partial, wrap_validation_errors
)
return await original_call_tool(self, call, *args, **kwargs)

ToolManager._call_tool = wrapped_call_tool
12 changes: 6 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ envlist =
{py3.10,py3.13,py3.14,py3.14t}-openai_agents-v0.5.0

{py3.10,py3.12,py3.13}-pydantic_ai-v1.0.18
{py3.10,py3.12,py3.13}-pydantic_ai-v1.3.0
{py3.10,py3.12,py3.13}-pydantic_ai-v1.6.0
{py3.10,py3.12,py3.13}-pydantic_ai-v1.10.0
{py3.10,py3.12,py3.13}-pydantic_ai-v1.4.0
{py3.10,py3.12,py3.13}-pydantic_ai-v1.8.0
{py3.10,py3.12,py3.13}-pydantic_ai-v1.12.0


# ~~~ Cloud ~~~
Expand Down Expand Up @@ -434,9 +434,9 @@ deps =
openai_agents: pytest-asyncio

pydantic_ai-v1.0.18: pydantic-ai==1.0.18
pydantic_ai-v1.3.0: pydantic-ai==1.3.0
pydantic_ai-v1.6.0: pydantic-ai==1.6.0
pydantic_ai-v1.10.0: pydantic-ai==1.10.0
pydantic_ai-v1.4.0: pydantic-ai==1.4.0
pydantic_ai-v1.8.0: pydantic-ai==1.8.0
pydantic_ai-v1.12.0: pydantic-ai==1.12.0
pydantic_ai: pytest-asyncio


Expand Down