项目文件夹

文件
Alex Rudenko aa9a176956 fix: improve performance tool description (#800)
Drive-by: refactor and improve eval scripts.
2026-01-20 11:38:51 +00:00

20 行
476 B
TypeScript

/**
* @license
* Copyright 2026 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import assert from 'node:assert';
import type {TestScenario} from '../eval_gemini.ts';
export const scenario: TestScenario = {
prompt: 'Emulate offline network conditions.',
maxTurns: 2,
expectations: calls => {
assert.strictEqual(calls.length, 1);
assert.strictEqual(calls[0].name, 'emulate');
assert.strictEqual(calls[0].args.networkConditions, 'Offline');
},
};