This commit is contained in:
Your Name
2026-05-14 03:54:59 +00:00
parent cc3b17a32f
commit a31aa6094f
22 changed files with 433 additions and 61 deletions
+7 -7
View File
@@ -5,7 +5,10 @@
*/
import type { Content } from '@google/genai';
import type { AgentChatHistory, HistoryTurn } from '../core/agentChatHistory.js';
import type {
AgentChatHistory,
HistoryTurn,
} from '../core/agentChatHistory.js';
import { isToolExecution, type ConcreteNode } from './graph/types.js';
import type { ContextEventBus } from './eventBus.js';
import type { ContextTracer } from './tracer.js';
@@ -400,12 +403,9 @@ export class ContextManager {
this.tracer.logEvent('ContextManager', 'Finished rendering');
const hardenedHistory = hardenHistory(
renderedHistory,
{
sentinels: this.sidecar.sentinels,
},
);
const hardenedHistory = hardenHistory(renderedHistory, {
sentinels: this.sidecar.sentinels,
});
const apiHistory = hardenedHistory.map((h) => h.content);
if (header) {