fix(agent-loop): reclassify pending tool calls

This commit is contained in:
Tianyi Cui
2026-07-17 21:55:10 +08:00
parent 17fe9e5b1e
commit 62f6251bf9
7 changed files with 140 additions and 72 deletions

View File

@@ -82,8 +82,8 @@ forever:
'assistant/chunk'
agent/step-result
'assistant/message'
schedule tool calls by ctx.tools.executionMode (exclusive = barrier;
consecutive parallel-safe = one rolling-pool group, <= maxParallelToolCalls in flight):
schedule tool calls by ctx.tools.executionMode (reclassify before pool replenishment;
exclusive = barrier; parallel-safe = rolling pool, <= maxParallelToolCalls in flight):
while the bounded pool has work:
capacity available -> 'tool/call' -> tools/pre-execute -> monotonic guards -> tools/execute
next model-order slot ready -> tools/post-execute -> 'tool/result'