(state: SessionState)
| 329 | } |
| 330 | |
| 331 | export function resetOnCompaction(state: SessionState): void { |
| 332 | state.toolParameters.clear() |
| 333 | state.prune.tools = new Map<string, number>() |
| 334 | state.prune.messages = createPruneMessagesState() |
| 335 | state.messageIds = { |
| 336 | byRawId: new Map<string, string>(), |
| 337 | byRef: new Map<string, string>(), |
| 338 | nextRef: 1, |
| 339 | } |
| 340 | state.nudges = { |
| 341 | contextLimitAnchors: new Set<string>(), |
| 342 | turnNudgeAnchors: new Set<string>(), |
| 343 | iterationNudgeAnchors: new Set<string>(), |
| 344 | } |
| 345 | } |
no test coverage detected