Skip to content

Commit c7ef317

Browse files
committed
🔨 fix from_id init
1 parent fad91b1 commit c7ef317

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

codeinterpreterapi/session.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ def __init__(
6363
self.code_log: list[tuple[str, str]] = []
6464

6565
@classmethod
66-
def from_id(cls, session_id: UUID) -> "CodeInterpreterSession":
67-
session = cls()
66+
def from_id(cls, session_id: UUID, **kwargs) -> "CodeInterpreterSession":
67+
session = cls(**kwargs)
6868
session.codebox = CodeBox.from_id(session_id)
69+
session.agent_executor = session._agent_executor()
6970
return session
7071

7172
@property

0 commit comments

Comments
 (0)