File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,8 @@ export async function handleGemini(
5353 if ( injectPrunableListGemini ( body . contents , endInjection ) ) {
5454 ctx . logger . debug ( "fetch" , "Injected prunable tools list (Gemini)" , {
5555 ids : numericIds ,
56- nudge : includeNudge
56+ nudge : includeNudge ,
57+ toolsSincePrune : ctx . toolTracker . toolResultCount
5758 } )
5859 modified = true
5960 }
Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ export async function handleOpenAIChatAndAnthropic(
5858 if ( injectPrunableList ( body . messages , endInjection ) ) {
5959 ctx . logger . debug ( "fetch" , "Injected prunable tools list" , {
6060 ids : numericIds ,
61- nudge : includeNudge
61+ nudge : includeNudge ,
62+ toolsSincePrune : ctx . toolTracker . toolResultCount
6263 } )
6364 modified = true
6465 }
Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ export async function handleOpenAIResponses(
5858 if ( injectPrunableListResponses ( body . input , endInjection ) ) {
5959 ctx . logger . debug ( "fetch" , "Injected prunable tools list (Responses API)" , {
6060 ids : numericIds ,
61- nudge : includeNudge
61+ nudge : includeNudge ,
62+ toolsSincePrune : ctx . toolTracker . toolResultCount
6263 } )
6364 modified = true
6465 }
You can’t perform that action at this time.
0 commit comments