MCPcopy
hub / github.com/google-gemini/gemini-cli / push

Method push

packages/core/src/core/agentChatHistory.ts:34–36  ·  view source on GitHub ↗

* Adds a new turn to the history. * Every turn must have a durable ID, usually provided by the ChatRecordingService.

(turn: HistoryTurn)

Source from the content-addressed store, hash-verified

32 * Every turn must have a durable ID, usually provided by the ChatRecordingService.
33 */
34 push(turn: HistoryTurn) {
35 this.history.push(turn);
36 }
37
38 /**
39 * Overwrites the entire history with a new list of turns.

Callers 15

MockClientClass · 0.80
runTestCaseFunction · 0.80
resume-gc.test.tsFile · 0.80
processOutputLineFunction · 0.80
runFunction · 0.80
getHistoricalAverageFunction · 0.80
addToolMethod · 0.80
runScenarioMethod · 0.80
generateReportMethod · 0.80
runScenarioMethod · 0.80

Calls

no outgoing calls

Tested by 15

runTestCaseFunction · 0.64
createMultipleFilesFunction · 0.64
readFunction · 0.64
walkTokensFunction · 0.64
fromAsyncFunction · 0.64
createTempDirFunction · 0.64
buildJsonlSessionFunction · 0.64
readFunction · 0.64
mockModelResponseFunction · 0.64
runWithActivitiesFunction · 0.64
setupMockSessionFunction · 0.64
runSessionFunction · 0.64