mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
Update /tools desc to show the name of each tool as known to the model (#1091)
This commit is contained in:
parent
197704c630
commit
40fbb61a1b
2 changed files with 8 additions and 15 deletions
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue