From 9da51a75147822bc178edee39ba838b073575c30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=B3ricz=20Gerg=C5=91?= Date: Thu, 23 Jan 2025 14:59:54 +0100 Subject: [PATCH] feat(extract): add original schema to logs --- apps/api/src/lib/extract/extraction-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/lib/extract/extraction-service.ts b/apps/api/src/lib/extract/extraction-service.ts index ab27e75c..fbc46da0 100644 --- a/apps/api/src/lib/extract/extraction-service.ts +++ b/apps/api/src/lib/extract/extraction-service.ts @@ -288,7 +288,7 @@ export async function performExtraction( reqSchema = await dereferenceSchema(reqSchema); } - logger.debug("Transformed schema.", { schema: reqSchema }); + logger.debug("Transformed schema.", { originalSchema: request.schema, schema: reqSchema }); // agent evaluates if the schema or the prompt has an array with big amount of items // also it checks if the schema any other properties that are not arrays