We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fad91b1 commit c7ef317Copy full SHA for c7ef317
codeinterpreterapi/session.py
@@ -63,9 +63,10 @@ def __init__(
63
self.code_log: list[tuple[str, str]] = []
64
65
@classmethod
66
- def from_id(cls, session_id: UUID) -> "CodeInterpreterSession":
67
- session = cls()
+ def from_id(cls, session_id: UUID, **kwargs) -> "CodeInterpreterSession":
+ session = cls(**kwargs)
68
session.codebox = CodeBox.from_id(session_id)
69
+ session.agent_executor = session._agent_executor()
70
return session
71
72
@property
0 commit comments