feat: switch to Version 2.0 session bundle format (Stage 3)

This commit is contained in:
Aishanee Shah
2026-05-14 18:38:45 +00:00
parent 0ae939422c
commit d74b296e4f
4 changed files with 466 additions and 511 deletions
+2 -2
View File
@@ -771,7 +771,7 @@ export class GeminiChat {
}
throw new AgentExecutionBlockedError(
beforeModelResult.reason || 'Model call blocked by hook',
beforeModelResult.reason || 'Agent execution blocked by hook',
syntheticResponse,
);
}
@@ -1208,7 +1208,7 @@ export class GeminiChat {
if (hookResult.blocked) {
throw new AgentExecutionBlockedError(
hookResult.reason || 'Model call blocked by hook',
hookResult.reason || 'Agent execution blocked by hook',
hookResult.response,
);
}