From a2251f01eb7a6d5f3bd2473f77770d478c6b1c55 Mon Sep 17 00:00:00 2001 From: sabaimran Date: Sun, 8 Dec 2024 13:27:33 -0800 Subject: [PATCH] Make result optional for code context, relevant when code execution was unsuccessful --- src/khoj/database/models/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/khoj/database/models/__init__.py b/src/khoj/database/models/__init__.py index 82583bc0..dea678d8 100644 --- a/src/khoj/database/models/__init__.py +++ b/src/khoj/database/models/__init__.py @@ -40,7 +40,7 @@ class CodeContextResult(PydanticBaseModel): class CodeContextData(PydanticBaseModel): code: str - result: CodeContextResult + result: Optional[CodeContextResult] = None class WebPage(PydanticBaseModel):