Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

chore: make the default selection for sanbox to subprocess in the Code_execution Toolkit. (#1933)

JINO ROHIT2ae2227c4e13
diff --git a/camel/toolkits/code_execution.py b/camel/toolkits/code_execution.py
index acd4ec600..a6a73dd83 100644
--- a/camel/toolkits/code_execution.py
+++ b/camel/toolkits/code_execution.py
@@ -29,6 +29,7 @@ class CodeExecutionToolkit(BaseToolkit):
Args:
sandbox (str): The environment type used to execute code.
+ (default: `subprocess`)
verbose (bool): Whether to print the output of the code execution.
(default: :obj:`False`)
unsafe_mode (bool): If `True`, the interpreter runs the code
@@ -43,7 +44,7 @@ class CodeExecutionToolkit(BaseToolkit):
self,
sandbox: Literal[
"internal_python", "jupyter", "docker", "subprocess", "e2b"
- ] = "internal_python",
+ ] = "subprocess",
verbose: bool = False,
unsafe_mode: bool = False,
import_white_list: Optional[List[str]] = None,