From 6ce0fd22c54199bbc8a47c06786e08666638d0c7 Mon Sep 17 00:00:00 2001 From: Alexander Alderman Webb Date: Wed, 17 Dec 2025 13:05:53 +0100 Subject: [PATCH 1/3] feat(python): Pydantic AI integration tool call exception option --- docs/platforms/python/integrations/pydantic-ai/index.mdx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/platforms/python/integrations/pydantic-ai/index.mdx b/docs/platforms/python/integrations/pydantic-ai/index.mdx index 9259d584927df..3afb4fdbed766 100644 --- a/docs/platforms/python/integrations/pydantic-ai/index.mdx +++ b/docs/platforms/python/integrations/pydantic-ai/index.mdx @@ -241,6 +241,14 @@ You can pass the following keyword arguments to `PydanticAIIntegration()`: The default is `True`. +- `handled_tool_call_exceptions`: + + Option to capture tool call exceptions that Pydantic AI prevents from bubbling up. These include validation errors when the agent is configured to + retry tool calls. All 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. + + The default is `True`. + ## Supported Versions - Pydantic AI: 1.0.0+ From 2d53fcb0e1ca36434232d2e899e47a52304fd74c Mon Sep 17 00:00:00 2001 From: Alexander Alderman Webb Date: Wed, 17 Dec 2025 13:07:26 +0100 Subject: [PATCH 2/3] grammar --- docs/platforms/python/integrations/pydantic-ai/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platforms/python/integrations/pydantic-ai/index.mdx b/docs/platforms/python/integrations/pydantic-ai/index.mdx index 3afb4fdbed766..8866043417dad 100644 --- a/docs/platforms/python/integrations/pydantic-ai/index.mdx +++ b/docs/platforms/python/integrations/pydantic-ai/index.mdx @@ -243,7 +243,7 @@ You can pass the following keyword arguments to `PydanticAIIntegration()`: - `handled_tool_call_exceptions`: - Option to capture tool call exceptions that Pydantic AI prevents from bubbling up. These include validation errors when the agent is configured to + Option to capture tool call exceptions that Pydantic AI prevents from bubbling up. These include validation errors when an agent is configured to retry tool calls. All 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. From 87d7bb6163ca8d15302591a892f062babcc67547 Mon Sep 17 00:00:00 2001 From: Alexander Alderman Webb Date: Wed, 17 Dec 2025 13:08:04 +0100 Subject: [PATCH 3/3] precise phrasing --- docs/platforms/python/integrations/pydantic-ai/index.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/platforms/python/integrations/pydantic-ai/index.mdx b/docs/platforms/python/integrations/pydantic-ai/index.mdx index 8866043417dad..e4f5f045142c3 100644 --- a/docs/platforms/python/integrations/pydantic-ai/index.mdx +++ b/docs/platforms/python/integrations/pydantic-ai/index.mdx @@ -244,8 +244,7 @@ You can pass the following keyword arguments to `PydanticAIIntegration()`: - `handled_tool_call_exceptions`: Option to capture tool call exceptions that Pydantic AI prevents from bubbling up. These include validation errors when an agent is configured to - retry tool calls. All 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. + 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. The default is `True`.