feat: update tool display name and improve SharedAgent component layout

This commit is contained in:
Siddhant Rai
2025-05-13 13:05:20 +05:30
parent ec7f14b82d
commit 57cc09b1d7
4 changed files with 50 additions and 37 deletions

View File

@@ -1581,7 +1581,7 @@ class SharedAgent(Resource):
for tool in data["tools"]:
tool_data = user_tools_collection.find_one({"_id": ObjectId(tool)})
if tool_data:
enriched_tools.append(tool_data.get("displayName", ""))
enriched_tools.append(tool_data.get("name", ""))
data["tools"] = enriched_tools
except Exception as err: