Skip to content

Commit 2bcfdb4

Browse files
committed
fix: update tool name format to include application ID
--bug=1066073@tapd-62980211 --user=刘瑞斌 【工作流】工作流当中的"AI节点" 添加多个智能体,在执行的时候只能调用最后一个。 https://www.tapd.cn/62980211/s/1845108
1 parent 94467eb commit 2bcfdb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/chat/mcp/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def list_tools(self):
3333
return {
3434
"tools": [
3535
{
36-
"name": 'ai_chat',
36+
"name": f'agent_{str(self.application.id)[:8]}',
3737
"description": f'{self.application.name} {self.application.desc}',
3838
"inputSchema": {
3939
"type": "object",

0 commit comments

Comments
 (0)