File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
src/solace_agent_mesh/agent/protocol Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -1457,7 +1457,19 @@ def publish_agent_card(component):
1457
1457
# Create the extension object for the agent's tools.
1458
1458
dynamic_tools = getattr (component , "agent_card_tool_manifest" , [])
1459
1459
if dynamic_tools :
1460
- tools_params = ToolsExtensionParams (tools = dynamic_tools )
1460
+ # Ensure all tools have a 'tags' field to prevent validation errors.
1461
+ processed_tools = []
1462
+ for tool in dynamic_tools :
1463
+ if "tags" not in tool :
1464
+ log .debug (
1465
+ "%s Tool '%s' in manifest is missing 'tags' field. Defaulting to empty list." ,
1466
+ component .log_identifier ,
1467
+ tool .get ("id" , "unknown" ),
1468
+ )
1469
+ tool ["tags" ] = []
1470
+ processed_tools .append (tool )
1471
+
1472
+ tools_params = ToolsExtensionParams (tools = processed_tools )
1461
1473
tools_extension = AgentExtension (
1462
1474
uri = TOOLS_EXTENSION_URI ,
1463
1475
description = "A list of tools available to the agent." ,
You can’t perform that action at this time.
0 commit comments