(toolCallId: string)
| 303 | } |
| 304 | |
| 305 | export 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 | |
| 322 | async function markAsyncToolStatus( |
| 323 | toolCallId: string, |
no test coverage detected