Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

feat(v1/Document): add warning field

Gergő Móricz29815e084b31
diff --git a/apps/api/src/controllers/v1/types.ts b/apps/api/src/controllers/v1/types.ts
index 441980b14..9b102e678 100644
--- a/apps/api/src/controllers/v1/types.ts
+++ b/apps/api/src/controllers/v1/types.ts
@@ -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,