mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Update /tools desc to show the name of each tool as known to the model (#1091)
This commit is contained in:
@@ -606,8 +606,8 @@ Add any other context about the problem here.
|
||||
|
||||
// Should only show tool1 and tool2, not the MCP tools
|
||||
const message = mockAddItem.mock.calls[1][0].text;
|
||||
expect(message).toContain('\u001b[36mTool1\u001b[0m');
|
||||
expect(message).toContain('\u001b[36mTool2\u001b[0m');
|
||||
expect(message).toContain('Tool1');
|
||||
expect(message).toContain('Tool2');
|
||||
expect(commandResult).toBe(true);
|
||||
});
|
||||
|
||||
@@ -664,9 +664,9 @@ Add any other context about the problem here.
|
||||
});
|
||||
|
||||
const message = mockAddItem.mock.calls[1][0].text;
|
||||
expect(message).toContain('\u001b[36mTool1\u001b[0m');
|
||||
expect(message).toContain('Tool1');
|
||||
expect(message).toContain('Description for Tool1');
|
||||
expect(message).toContain('\u001b[36mTool2\u001b[0m');
|
||||
expect(message).toContain('Tool2');
|
||||
expect(message).toContain('Description for Tool2');
|
||||
expect(commandResult).toBe(true);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user