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

Auto-update documentation after merge [skip ci]

camel-docs-bot6686f8f47458
diff --git a/docs/mintlify/reference/camel.toolkits.terminal_toolkit.utils.mdx b/docs/mintlify/reference/camel.toolkits.terminal_toolkit.utils.mdx
index 440c3c158..9ea7c3084 100644
--- a/docs/mintlify/reference/camel.toolkits.terminal_toolkit.utils.mdx
+++ b/docs/mintlify/reference/camel.toolkits.terminal_toolkit.utils.mdx
@@ -1,15 +1,23 @@
<a id="camel.toolkits.terminal_toolkit.utils"></a>
-<a id="camel.toolkits.terminal_toolkit.utils.contains_command_chaining"></a>
+<a id="camel.toolkits.terminal_toolkit.utils.check_command_safety"></a>
-## contains_command_chaining
+## check_command_safety
```python
-def contains_command_chaining(command: str):
+def check_command_safety(command: str, allowed_commands: Optional[Set[str]] = None):
```
-Check if command contains chaining operators that could be used to
-bypass security.
+Check if a command (potentially with chaining) is safe to execute.
+
+**Parameters:**
+
+- **command** (str): The command string to check
+- **allowed_commands** (Optional[Set[str]]): Set of allowed commands (whitelist mode)
+
+**Returns:**
+
+ Tuple[bool, str]: (is_safe, reason)
<a id="camel.toolkits.terminal_toolkit.utils.sanitize_command"></a>