MCPcopy
hub / github.com/simstudioai/sim / getAsyncToolCall

Function getAsyncToolCall

apps/sim/lib/copilot/async-runs/repository.ts:305–320  ·  view source on GitHub ↗
(toolCallId: string)

Source from the content-addressed store, hash-verified

303}
304
305export async function getAsyncToolCall(toolCallId: string) {
306 return withDbSpan(
307 TraceSpan.CopilotAsyncRunsGetAsyncToolCall,
308 'SELECT',
309 'copilot_async_tool_calls',
310 { [TraceAttr.ToolCallId]: toolCallId },
311 async () => {
312 const [row] = await db
313 .select()
314 .from(copilotAsyncToolCalls)
315 .where(eq(copilotAsyncToolCalls.toolCallId, toolCallId))
316 .limit(1)
317 return row ?? null
318 }
319 )
320}
321
322async function markAsyncToolStatus(
323 toolCallId: string,

Callers 3

route.tsFile · 0.90
upsertAsyncToolCallFunction · 0.85
completeAsyncToolCallFunction · 0.85

Calls 2

withDbSpanFunction · 0.85
eqFunction · 0.50

Tested by

no test coverage detected