-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support remote code execution and code sandbox (#103)
1. Introduce data models for Execution, Result, Error, Logs modeling the code execution result of local and remote code execution. 2. Introduce a baseclass for CodeInterpreter abstraction 3. Refactor the current Execute class to conform the CodeInterpreter interface, and renamed it to LocalCodeInterpreter 4. Update all the existing client code (i.e. agent) that uses LocalCodeInterpreter 5. Add a new E2BCodeInterpreter
- Loading branch information
1 parent
2b6bd80
commit db3dc68
Showing
8 changed files
with
1,169 additions
and
120 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,7 +1,2 @@ | ||
from .agent import Agent | ||
from .agent_coder import AgentCoder | ||
from .data_interpreter import DataInterpreter | ||
from .easytool import EasyTool | ||
from .easytool_v2 import EasyToolV2 | ||
from .reflexion import Reflexion | ||
from .vision_agent import VisionAgent |
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
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
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
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,3 +1,10 @@ | ||
from .execute import Execute | ||
from .execute import ( | ||
CodeInterpreter, | ||
CodeInterpreterFactory, | ||
Error, | ||
Execution, | ||
Logs, | ||
Result, | ||
) | ||
from .sim import Sim, load_sim, merge_sim | ||
from .video import extract_frames_from_video |
Oops, something went wrong.