feat(v1/Document): add warning field
This commit is contained in:
@@ -216,6 +216,7 @@ export type Document = {
|
|||||||
actions?: {
|
actions?: {
|
||||||
screenshots: string[];
|
screenshots: string[];
|
||||||
};
|
};
|
||||||
|
warning?: string;
|
||||||
metadata: {
|
metadata: {
|
||||||
title?: string;
|
title?: string;
|
||||||
description?: string;
|
description?: string;
|
||||||
@@ -443,6 +444,7 @@ export function legacyDocumentConverter(doc: any): Document {
|
|||||||
extract: doc.llm_extraction,
|
extract: doc.llm_extraction,
|
||||||
screenshot: doc.screenshot ?? doc.fullPageScreenshot,
|
screenshot: doc.screenshot ?? doc.fullPageScreenshot,
|
||||||
actions: doc.actions ?? undefined,
|
actions: doc.actions ?? undefined,
|
||||||
|
warning: doc.warning,
|
||||||
metadata: {
|
metadata: {
|
||||||
...doc.metadata,
|
...doc.metadata,
|
||||||
pageError: undefined,
|
pageError: undefined,
|
||||||
|
|||||||
Reference in New Issue
Block a user