Skip to content

Commit

Permalink
feat: make logs json searializable
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyiqunLu committed Sep 6, 2024
1 parent ad9cf58 commit 48e4067
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vision_agent/utils/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ def __str__(self) -> str:
f"----- stdout -----\n{stdout_str}\n----- stderr -----\n{stderr_str}"
)

def to_json(self) -> str:
return str(self)


class Error(BaseModel):
"""Represents an error that occurred during the execution of a cell. The error
Expand Down

0 comments on commit 48e4067

Please sign in to comment.