We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ec6e79 commit f358194Copy full SHA for f358194
agentops/instrumentation/agentic/google_adk/patch.py
@@ -360,8 +360,10 @@ def extract_agent_attributes(instance):
360
attributes["agent.instruction"] = instance.instruction
361
if hasattr(instance, "tools"):
362
for tool in instance.tools:
363
- attributes[ToolAttributes.TOOL_NAME] = tool.name
364
- attributes[ToolAttributes.TOOL_DESCRIPTION] = tool.description
+ if hasattr(tool, "name"):
+ attributes[ToolAttributes.TOOL_NAME] = tool.name
365
+ if hasattr(tool, "description"):
366
+ attributes[ToolAttributes.TOOL_DESCRIPTION] = tool.description
367
if hasattr(instance, "output_key"):
368
attributes["agent.output_key"] = instance.output_key
369
# Subagents
0 commit comments