feat: add is LLM entry

This commit is contained in:
Rohit Rajan
2025-12-12 02:54:30 +05:30
parent d8de5031d3
commit 12dea8e24a
10 changed files with 29 additions and 16 deletions

View File

@@ -1001,6 +1001,7 @@ async function executeRun(id: string, userId: string, requestedFormats?: string[
schemaItemsExtracted: totalSchemaItemsExtracted,
listItemsExtracted: totalListItemsExtracted,
extractedScreenshotsCount,
is_llm: (recording.recording_meta as any).isLLM,
}
)
@@ -1121,15 +1122,16 @@ async function executeRun(id: string, userId: string, requestedFormats?: string[
} catch (webhookError: any) {
logger.log('error', `Failed to send failure webhooks for run ${run.runId}: ${webhookError.message}`);
}
capture(
'maxun-oss-run-created-api',
{
runId: id,
created_at: new Date().toISOString(),
status: 'failed',
is_llm: (recording?.recording_meta as any)?.isLLM,
}
);
}
capture(
'maxun-oss-run-created-api',
{
runId: id,
created_at: new Date().toISOString(),
status: 'failed',
}
);
return {
success: false,
error: error.message,

View File

@@ -677,6 +677,7 @@ router.post("/sdk/extract/llm", requireAPIKey, async (req: AuthenticatedRequest,
params: [],
type: 'extract',
url: workflowResult.url,
isLLM: true,
};
const robot = await Robot.create({