Skip to content

Commit f3a97ee

Browse files
feat(python): Pydantic AI integration tool call exception option (#15849)
Document getsentry/sentry-python#5237.
1 parent d11c384 commit f3a97ee

File tree

1 file changed

+7
-0
lines changed
  • docs/platforms/python/integrations/pydantic-ai

1 file changed

+7
-0
lines changed

docs/platforms/python/integrations/pydantic-ai/index.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,13 @@ You can pass the following keyword arguments to `PydanticAIIntegration()`:
241241

242242
The default is `True`.
243243

244+
- `handled_tool_call_exceptions`:
245+
246+
Option to capture tool call exceptions that Pydantic AI prevents from bubbling up. These include validation errors when an agent is configured to
247+
retry tool calls. All additional tool call exceptions reported when this option is `True` are handled errors in Sentry. This option has no effect on exceptions that are not handled by Pydantic AI.
248+
249+
The default is `True`.
250+
244251
## Supported Versions
245252

246253
- Pydantic AI: 1.0.0+

0 commit comments

Comments
 (0)