mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-12-18 18:47:11 +00:00
Make result optional for code context, relevant when code execution was unsuccessful
This commit is contained in:
parent
9c403d24e1
commit
a2251f01eb
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ class CodeContextResult(PydanticBaseModel):
|
||||||
|
|
||||||
class CodeContextData(PydanticBaseModel):
|
class CodeContextData(PydanticBaseModel):
|
||||||
code: str
|
code: str
|
||||||
result: CodeContextResult
|
result: Optional[CodeContextResult] = None
|
||||||
|
|
||||||
|
|
||||||
class WebPage(PydanticBaseModel):
|
class WebPage(PydanticBaseModel):
|
||||||
|
|
Loading…
Reference in a new issue