mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-14 13:53:02 -07:00
robustness(core): static checks to validate history is immutable (#21228)
This commit is contained in:
@@ -74,7 +74,9 @@ export class ContextBuilder {
|
||||
}
|
||||
|
||||
// Helper to convert Google GenAI Content[] to Safety Protocol ConversationTurn[]
|
||||
private convertHistoryToTurns(history: Content[]): ConversationTurn[] {
|
||||
private convertHistoryToTurns(
|
||||
history: readonly Content[],
|
||||
): ConversationTurn[] {
|
||||
const turns: ConversationTurn[] = [];
|
||||
let currentUserRequest: { text: string } | undefined;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user