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

Function listAsyncToolCallsForRun

apps/sim/lib/copilot/async-runs/repository.ts:410–423  ·  view source on GitHub ↗
(runId: string)

Source from the content-addressed store, hash-verified

408}
409
410async function listAsyncToolCallsForRun(runId: string) {
411 return withDbSpan(
412 TraceSpan.CopilotAsyncRunsListForRun,
413 'SELECT',
414 'copilot_async_tool_calls',
415 { [TraceAttr.RunId]: runId },
416 async () =>
417 db
418 .select()
419 .from(copilotAsyncToolCalls)
420 .where(eq(copilotAsyncToolCalls.runId, runId))
421 .orderBy(desc(copilotAsyncToolCalls.createdAt))
422 )
423}
424
425export async function getAsyncToolCalls(toolCallIds: string[]) {
426 if (toolCallIds.length === 0) return []

Callers

nothing calls this directly

Calls 2

withDbSpanFunction · 0.85
eqFunction · 0.50

Tested by

no test coverage detected