We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 056fc7c commit 5a0e853Copy full SHA for 5a0e853
sentry_sdk/integrations/pydantic_ai/spans/execute_tool.py
@@ -38,10 +38,7 @@ 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 (
42
- tool_definition is not None
43
- and getattr(tool_definition, "description", None) is not None
44
- ):
+ if tool_definition is not None and hasattr(tool_definition, "description"):
45
span.set_data(
46
SPANDATA.GEN_AI_TOOL_DESCRIPTION,
47
tool_definition.description,
0 commit comments