Skip to content

Commit 8c9df35

Browse files
feat: add recall system prompt mechanism
1 parent 70b718c commit 8c9df35

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/messages/prune.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export const insertPruneToolContext = (
7171
if (state.recallCounter >= config.strategies.pruneTool.recall.frequency) {
7272
logger.info("Inserting prune recall message")
7373
recallString = "\n" + RECALL_STRING
74+
state.recallCounter = 0
7475
}
7576

7677
const userMessage: WithParts = {

0 commit comments

Comments
 (0)