feat: 流程调通

This commit is contained in:
莘权 马 2023-11-24 19:56:27 +08:00
parent 8ce6914df2
commit 882f22da35
11 changed files with 274 additions and 136 deletions

View file

@ -295,3 +295,17 @@ class RunCodeContext(BaseModel):
return RunCodeContext(**m)
except Exception:
return None
class RunCodeResult(BaseModel):
summary: str
stdout: str
stderr: str
@staticmethod
def loads(val: str) -> RunCodeResult | None:
try:
m = json.loads(val)
return RunCodeResult(**m)
except Exception:
return None