mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
Simpler assert.
This commit is contained in:
@@ -197,10 +197,7 @@ describe('Frugal Search', () => {
|
|||||||
// Check that it actually tried to find it using appropriate tools
|
// Check that it actually tried to find it using appropriate tools
|
||||||
const validAttempts = toolCalls.filter((call) => {
|
const validAttempts = toolCalls.filter((call) => {
|
||||||
const args = getParams(call);
|
const args = getParams(call);
|
||||||
if (
|
if (call.toolRequest.name === 'grep_search') {
|
||||||
call.toolRequest.name === 'grep_search' &&
|
|
||||||
(args.total_max_matches || args.max_matches_per_file)
|
|
||||||
) {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user