Skip to content

Commit a1bfe80

Browse files
authored
šŸ› Fix the issue of blank agents in the agent selection box on the conversation page #625
2 parents 85216ca + 0b8fe60 commit a1bfe80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ā€Žbackend/services/agent_service.pyā€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,8 @@ def list_all_agent_info_impl(tenant_id: str, user_id: str) -> list[dict]:
328328
simple_agent_list = []
329329
for agent in agent_list:
330330
# check agent is available
331+
if not agent["name"]:
332+
continue
331333
tool_info = search_tools_for_sub_agent(agent_id=agent["agent_id"], tenant_id=tenant_id, user_id=None)
332334
tool_id_list = [tool["tool_id"] for tool in tool_info]
333335
is_available = all(check_tool_is_available(tool_id_list))

0 commit comments

Comments
Ā (0)