Skip to content

Commit 2b7dca9

Browse files
committed
Claude forgot to include the functionality that required the test changes
1 parent aee6675 commit 2b7dca9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/integrations/pydantic_ai/spans/execute_tool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ def execute_tool_span(
3838
span.set_data(SPANDATA.GEN_AI_TOOL_TYPE, tool_type)
3939
span.set_data(SPANDATA.GEN_AI_TOOL_NAME, tool_name)
4040

41-
if tool_definition is not None:
41+
if tool_definition is not None and tool_definition.description is not None:
4242
span.set_data(
4343
SPANDATA.GEN_AI_TOOL_DESCRIPTION,
44-
getattr(tool_definition, "description", None),
44+
tool_definition.description,
4545
)
4646

4747
_set_agent_data(span, agent)

0 commit comments

Comments
 (0)