Make result optional for code context, relevant when code execution was unsuccessful

This commit is contained in:
sabaimran 2024-12-08 13:27:33 -08:00
parent 9c403d24e1
commit a2251f01eb

View file

@ -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):