We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b7dca9 commit 2ae0c03Copy full SHA for 2ae0c03
sentry_sdk/integrations/pydantic_ai/spans/execute_tool.py
@@ -38,7 +38,10 @@ def execute_tool_span(
38
span.set_data(SPANDATA.GEN_AI_TOOL_TYPE, tool_type)
39
span.set_data(SPANDATA.GEN_AI_TOOL_NAME, tool_name)
40
41
- if tool_definition is not None and tool_definition.description is not None:
+ if (
42
+ tool_definition is not None
43
+ and getattr(tool_definition, "description", None) is not None
44
+ ):
45
span.set_data(
46
SPANDATA.GEN_AI_TOOL_DESCRIPTION,
47
tool_definition.description,
0 commit comments