File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,6 @@ export class Janitor {
109109 toolCallIds . push ( normalizedId )
110110
111111 const cachedData = this . toolParametersCache . get ( part . callID ) || this . toolParametersCache . get ( normalizedId )
112- // Session messages store input in part.state.input, not part.parameters
113112 const parameters = cachedData ?. parameters ?? part . state ?. input ?? part . parameters
114113
115114 toolMetadata . set ( normalizedId , {
@@ -670,6 +669,8 @@ export class Janitor {
670669 const missingTools = llmPrunedIds . filter ( id => {
671670 const normalizedId = id . toLowerCase ( )
672671 const metadata = toolMetadata . get ( normalizedId )
672+ // batch tools are intentionally excluded from the summary, so don't count them as missing
673+ if ( metadata ?. tool === 'batch' ) return false
673674 return ! metadata || ! foundToolNames . has ( metadata . tool )
674675 } )
675676
You can’t perform that action at this time.
0 commit comments