MCPcopy Create free account
hub / github.com/simstudioai/sim / waitForToolIds

Function waitForToolIds

apps/sim/lib/copilot/request/lifecycle/run.ts:316–323  ·  view source on GitHub ↗
(context: StreamingContext, toolIds: string[])

Source from the content-addressed store, hash-verified

314}
315
316async function waitForToolIds(context: StreamingContext, toolIds: string[]): Promise<void> {
317 const promises: Promise<unknown>[] = []
318 for (const id of toolIds) {
319 const p = context.pendingToolPromises.get(id)
320 if (p) promises.push(p)
321 }
322 if (promises.length > 0) await Promise.allSettled(promises)
323}
324
325function collectResultsForToolIds(
326 context: StreamingContext,

Callers 2

driveOneChildChainFunction · 0.85
runCheckpointLoopFunction · 0.85

Calls 2

getMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected