(runId: string)
| 408 | } |
| 409 | |
| 410 | async 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 | |
| 425 | export async function getAsyncToolCalls(toolCallIds: string[]) { |
| 426 | if (toolCallIds.length === 0) return [] |
nothing calls this directly
no test coverage detected