mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-29 06:25:16 -07:00
Merge branch 'main' into sdk-07-hooks-agent
This commit is contained in:
@@ -144,14 +144,14 @@ describe('GeminiCliAgent Integration', () => {
|
||||
});
|
||||
|
||||
it('propagates errors from dynamic instructions', async () => {
|
||||
const goldenFile = getGoldenPath('agent-static-instructions');
|
||||
const agent = new GeminiCliAgent({
|
||||
instructions: () => {
|
||||
throw new Error('Dynamic instruction failure');
|
||||
},
|
||||
model: 'gemini-2.0-flash',
|
||||
fakeResponses: RECORD_MODE
|
||||
? undefined
|
||||
: getGoldenPath('agent-dynamic-instructions'),
|
||||
recordResponses: RECORD_MODE ? goldenFile : undefined,
|
||||
fakeResponses: RECORD_MODE ? undefined : goldenFile,
|
||||
});
|
||||
|
||||
const session = agent.session();
|
||||
|
||||
Reference in New Issue
Block a user