forked from shroominic/codeinterpreter-api
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45bf730
commit 0a41406
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
from .file import File | ||
from .input import CodeInput, FileInput | ||
from .response import CodeInterpreterResponse, UserRequest | ||
from .status import SessionStatus | ||
|
||
__all__ = [ | ||
"CodeInterpreterResponse", | ||
"CodeInput", | ||
"File", | ||
"FileInput", | ||
"UserRequest", | ||
"SessionStatus", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from codeboxapi.schema import CodeBoxStatus # type: ignore | ||
|
||
|
||
class SessionStatus(CodeBoxStatus): | ||
@classmethod | ||
def from_codebox_status(cls, cbs: CodeBoxStatus) -> "SessionStatus": | ||
return cls(status=cbs.status) | ||
|
||
def __repr__(self): | ||
return f"<SessionStatus status={self.status}>" |