feat(v1/Document): add warning field

This commit is contained in:
Gergő Móricz 2024-09-26 21:19:05 +02:00
parent 095babe70b
commit 29815e084b

View File

@ -216,6 +216,7 @@ export type Document = {
actions?: {
screenshots: string[];
};
warning?: string;
metadata: {
title?: string;
description?: string;
@ -443,6 +444,7 @@ export function legacyDocumentConverter(doc: any): Document {
extract: doc.llm_extraction,
screenshot: doc.screenshot ?? doc.fullPageScreenshot,
actions: doc.actions ?? undefined,
warning: doc.warning,
metadata: {
...doc.metadata,
pageError: undefined,