pub async fn execute_batch_with(
calls: &[ToolCall],
snapshot: &ToolSnapshot,
retry_policy: &RetryPolicy,
) -> BatchExecutionResultExpand description
使用预解析的快照批量执行 tool_calls。
这是动态目录模式的核心执行函数。
§用法
ⓘ
let snapshot = executor.snapshot().await;
let result = execute_batch_with(&tool_calls, &snapshot, &executor.retry_policy()).await;§ParallelSafety 契约
Safe: 全并发(每个 tool 独立 spawn)CategoryExclusive(cat): 组内串行,组间并发Exclusive: 全串行
§一致性保证
snapshot 快照在函数执行期间固定不变,不会因目录刷新而漂移。