🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
Auto-update documentation after merge [skip ci]
camel-docs-botcb69e1658faa
diff --git a/docs/mintlify/reference/camel.interpreters.internal_python_interpreter.mdx b/docs/mintlify/reference/camel.interpreters.internal_python_interpreter.mdxindex 0f1311deb..5217b6f40 100644--- a/docs/mintlify/reference/camel.interpreters.internal_python_interpreter.mdx+++ b/docs/mintlify/reference/camel.interpreters.internal_python_interpreter.mdx@@ -49,6 +49,7 @@ Modifications copyright (C) 2023 CAMEL-AI.org- **action_space** (Dict[str, Any], optional): A dictionary that maps action names to their corresponding functions or objects. The interpreter can only execute functions that are either directly listed in this dictionary or are member functions of objects listed in this dictionary. The concept of :obj:`action_space` represents the actions that an agent is capable of performing. If `None`, set to empty dict. (default: :obj:`None`)- **import_white_list** (List[str], optional): A list that stores the Python modules or functions that can be imported in the code. All submodules and functions of the modules listed in this list are importable. Any other import statements will be rejected. The module and its submodule or function name are separated by a period (:obj:`.`). (default: :obj:`None`)- **unsafe_mode** (bool, optional): If `True`, the interpreter runs the code by `eval()` or `exec()` without any security check. (default: :obj:`False`)+- **require_confirm** (bool, optional): If True, prompt user before running shell commands on the local computer. (default: :obj:`True`)- **raise_error** (bool, optional): Raise error if the interpreter fails. (default: :obj:`False`)- **allow_builtins** (bool, optional): If `True`, safe built-in functions like print, len, str, etc. are added to the action space. (default: :obj:`True`)@@ -62,6 +63,7 @@ def __init__(action_space: Optional[Dict[str, Any]] = None,import_white_list: Optional[List[str]] = None,unsafe_mode: bool = False,+ require_confirm: bool = True,raise_error: bool = False,allow_builtins: bool = True):@@ -311,3 +313,13 @@ Execute a command in the internal python interpreter.**Returns:**tuple: A tuple containing the stdout and stderr of the command.++<a id="camel.interpreters.internal_python_interpreter.InternalPythonInterpreter._confirm_execution"></a>++### _confirm_execution++```python+def _confirm_execution(self, command: str):+```++Prompt the user before executing a local shell command.diff --git a/docs/mintlify/reference/camel.toolkits.code_execution.mdx b/docs/mintlify/reference/camel.toolkits.code_execution.mdxindex cebfc25bd..f8fd8e58e 100644--- a/docs/mintlify/reference/camel.toolkits.code_execution.mdx+++ b/docs/mintlify/reference/camel.toolkits.code_execution.mdx@@ -16,7 +16,7 @@ A toolkit for code execution.- **verbose** (bool): Whether to print the output of the code execution. (default: :obj:`False`)- **unsafe_mode** (bool): If `True`, the interpreter runs the code by `eval()` without any security check. (default: :obj:`False`)- **import_white_list** (Optional[List[str]]): A list of allowed imports. (default: :obj:`None`)-- **require_confirm** (Optional[bool]): Whether to require confirmation before executing code. If `None`, subprocess execution requires confirmation by default. (default: :obj:`None`)+- **require_confirm** (Optional[bool]): Whether to require confirmation before executing code. If `None`, local host execution sandboxes require confirmation by default. (default: :obj:`None`)- **timeout** (Optional[float]): General timeout for toolkit operations. (default: :obj:`None`)- **microsandbox_config** (Optional[dict]): Configuration for microsandbox interpreter. Available keys: 'server_url', 'api_key', 'namespace', 'sandbox_name', 'timeout'. If None, uses default configuration. (default: :obj:`None`)