MCPcopy Index your code
hub / github.com/simstudioai/sim / getAsyncToolCalls

Function getAsyncToolCalls

apps/sim/lib/copilot/async-runs/repository.ts:425–438  ·  view source on GitHub ↗
(toolCallIds: string[])

Source from the content-addressed store, hash-verified

423}
424
425export async function getAsyncToolCalls(toolCallIds: string[]) {
426 if (toolCallIds.length === 0) return []
427 return withDbSpan(
428 TraceSpan.CopilotAsyncRunsGetMany,
429 'SELECT',
430 'copilot_async_tool_calls',
431 { [TraceAttr.CopilotAsyncToolIdsCount]: toolCallIds.length },
432 async () =>
433 db
434 .select()
435 .from(copilotAsyncToolCalls)
436 .where(inArray(copilotAsyncToolCalls.toolCallId, toolCallIds))
437 )
438}
439
440export async function claimCompletedAsyncToolCall(toolCallId: string, workerId: string) {
441 return withDbSpan(

Callers 1

getToolConfirmationFunction · 0.90

Calls 1

withDbSpanFunction · 0.85

Tested by

no test coverage detected