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: update folder naming (#2541)

Wendong-Fana5b0811a5a4a
diff --git a/camel/data_collector/__init__.py b/camel/data_collectors/__init__.py
similarity index 100%
rename from camel/data_collector/__init__.py
rename to camel/data_collectors/__init__.py
diff --git a/camel/data_collector/alpaca_collector.py b/camel/data_collectors/alpaca_collector.py
similarity index 98%
rename from camel/data_collector/alpaca_collector.py
rename to camel/data_collectors/alpaca_collector.py
index bfea503a7..a2241d089 100644
--- a/camel/data_collector/alpaca_collector.py
+++ b/camel/data_collectors/alpaca_collector.py
@@ -17,7 +17,7 @@ from typing import Any, Dict, List, Optional, Union
from typing_extensions import Self
from camel.agents import ChatAgent
-from camel.data_collector.base import BaseDataCollector
+from camel.data_collectors.base import BaseDataCollector
from camel.messages import AlpacaItem, BaseMessage
from camel.schemas import OpenAISchemaConverter
diff --git a/camel/data_collector/base.py b/camel/data_collectors/base.py
similarity index 100%
rename from camel/data_collector/base.py
rename to camel/data_collectors/base.py
diff --git a/camel/data_collector/sharegpt_collector.py b/camel/data_collectors/sharegpt_collector.py
similarity index 99%
rename from camel/data_collector/sharegpt_collector.py
rename to camel/data_collectors/sharegpt_collector.py
index bb2650c70..35b8e4ef8 100644
--- a/camel/data_collector/sharegpt_collector.py
+++ b/camel/data_collectors/sharegpt_collector.py
@@ -19,7 +19,7 @@ from pydantic import BaseModel
from typing_extensions import Self
from camel.agents import ChatAgent
-from camel.data_collector.base import BaseDataCollector
+from camel.data_collectors.base import BaseDataCollector
from camel.messages import BaseMessage
from camel.messages.conversion.conversation_models import (
ShareGPTConversation,
diff --git a/camel/runtime/__init__.py b/camel/runtimes/__init__.py
similarity index 100%
rename from camel/runtime/__init__.py
rename to camel/runtimes/__init__.py
diff --git a/camel/runtime/api.py b/camel/runtimes/api.py
similarity index 100%
rename from camel/runtime/api.py
rename to camel/runtimes/api.py
diff --git a/camel/runtime/base.py b/camel/runtimes/base.py
similarity index 100%
rename from camel/runtime/base.py
rename to camel/runtimes/base.py
diff --git a/camel/runtime/configs.py b/camel/runtimes/configs.py
similarity index 100%
rename from camel/runtime/configs.py
rename to camel/runtimes/configs.py
diff --git a/camel/runtime/daytona_runtime.py b/camel/runtimes/daytona_runtime.py
similarity index 99%
rename from camel/runtime/daytona_runtime.py
rename to camel/runtimes/daytona_runtime.py
index 448ae6f6e..636d16cf5 100644
--- a/camel/runtime/daytona_runtime.py
+++ b/camel/runtimes/daytona_runtime.py
@@ -21,7 +21,7 @@ from typing import Any, Dict, List, Optional, Union
from pydantic import BaseModel
from camel.logger import get_logger
-from camel.runtime import BaseRuntime
+from camel.runtimes import BaseRuntime
from camel.toolkits.function_tool import FunctionTool
logger = get_logger(__name__)
diff --git a/camel/runtime/docker_runtime.py b/camel/runtimes/docker_runtime.py
similarity index 99%
rename from camel/runtime/docker_runtime.py
rename to camel/runtimes/docker_runtime.py
index ab1560629..6e163f674 100644
--- a/camel/runtime/docker_runtime.py
+++ b/camel/runtimes/docker_runtime.py
@@ -26,7 +26,7 @@ import requests
from pydantic import BaseModel
from tqdm import tqdm
-from camel.runtime import BaseRuntime, TaskConfig
+from camel.runtimes import BaseRuntime, TaskConfig
from camel.toolkits import FunctionTool
if TYPE_CHECKING:
diff --git a/camel/runtime/llm_guard_runtime.py b/camel/runtimes/llm_guard_runtime.py
similarity index 98%
rename from camel/runtime/llm_guard_runtime.py
rename to camel/runtimes/llm_guard_runtime.py
index a6d672fda..385a55f3f 100644
--- a/camel/runtime/llm_guard_runtime.py
+++ b/camel/runtimes/llm_guard_runtime.py
@@ -19,8 +19,8 @@ from typing import List, Optional, Union
from camel.agents import ChatAgent
from camel.configs import ChatGPTConfig
from camel.models import BaseModelBackend, ModelFactory
-from camel.runtime import BaseRuntime
-from camel.runtime.utils import FunctionRiskToolkit, IgnoreRiskToolkit
+from camel.runtimes import BaseRuntime
+from camel.runtimes.utils import FunctionRiskToolkit, IgnoreRiskToolkit
from camel.toolkits import FunctionTool
from camel.types import ModelPlatformType, ModelType
diff --git a/camel/runtime/remote_http_runtime.py b/camel/runtimes/remote_http_runtime.py
similarity index 99%
rename from camel/runtime/remote_http_runtime.py
rename to camel/runtimes/remote_http_runtime.py
index 2e8355396..3711f0764 100644
--- a/camel/runtime/remote_http_runtime.py
+++ b/camel/runtimes/remote_http_runtime.py
@@ -24,7 +24,7 @@ from typing import Any, Dict, List, Optional, Union
import requests
from pydantic import BaseModel
-from camel.runtime import BaseRuntime
+from camel.runtimes import BaseRuntime
from camel.toolkits.function_tool import FunctionTool
logger = logging.getLogger(__name__)
diff --git a/camel/runtime/ubuntu_docker_runtime.py b/camel/runtimes/ubuntu_docker_runtime.py
similarity index 99%
rename from camel/runtime/ubuntu_docker_runtime.py
rename to camel/runtimes/ubuntu_docker_runtime.py
index f2149d583..0bcad84d8 100644
--- a/camel/runtime/ubuntu_docker_runtime.py
+++ b/camel/runtimes/ubuntu_docker_runtime.py
@@ -18,7 +18,7 @@ import time
from pathlib import Path
from typing import Callable, List, Optional, Union
-from camel.runtime.docker_runtime import DockerRuntime
+from camel.runtimes.docker_runtime import DockerRuntime
from camel.toolkits import FunctionTool
logger = logging.getLogger(__name__)
diff --git a/camel/runtime/utils/__init__.py b/camel/runtimes/utils/__init__.py
similarity index 100%
rename from camel/runtime/utils/__init__.py
rename to camel/runtimes/utils/__init__.py
diff --git a/camel/runtime/utils/function_risk_toolkit.py b/camel/runtimes/utils/function_risk_toolkit.py
similarity index 100%
rename from camel/runtime/utils/function_risk_toolkit.py
rename to camel/runtimes/utils/function_risk_toolkit.py
diff --git a/camel/runtime/utils/ignore_risk_toolkit.py b/camel/runtimes/utils/ignore_risk_toolkit.py
similarity index 100%
rename from camel/runtime/utils/ignore_risk_toolkit.py
rename to camel/runtimes/utils/ignore_risk_toolkit.py
diff --git a/docs/key_modules/runtimes.md b/docs/key_modules/runtimes.md
index 5dab6f305..55bc2737f 100644
--- a/docs/key_modules/runtimes.md
+++ b/docs/key_modules/runtimes.md
@@ -97,7 +97,7 @@ long as they follow the `FunctionTool` type defined by CAMEL (see [tools](
./tools.md)
module document for more details.)
```
-from camel.runtime import RemoteHttpRuntime
+from camel.runtimes import RemoteHttpRuntime
from camel.toolkits import MathToolkit
if __name__ == "__main__":
diff --git a/docs/mintlify/docs.json b/docs/mintlify/docs.json
index 66957d68d..afaf9fff3 100644
--- a/docs/mintlify/docs.json
+++ b/docs/mintlify/docs.json
@@ -531,20 +531,6 @@
"reference/camel.bots.slack.slack_app"
]
},
- {
- "group": "Runtime",
- "pages": [
- "reference/camel.runtime.base",
- "reference/camel.runtime.configs",
- "reference/camel.runtime.daytona_runtime",
- "reference/camel.runtime.docker_runtime",
- "reference/camel.runtime.llm_guard_runtime",
- "reference/camel.runtime.remote_http_runtime",
- "reference/camel.runtime.ubuntu_docker_runtime",
- "reference/camel.runtime.utils.function_risk_toolkit",
- "reference/camel.runtime.utils.ignore_risk_toolkit"
- ]
- },
{
"group": "Utilities",
"pages": [
@@ -597,11 +583,11 @@
]
},
{
- "group": "Data Collector",
+ "group": "Data Collectors",
"pages": [
- "reference/camel.data_collector.alpaca_collector",
- "reference/camel.data_collector.base",
- "reference/camel.data_collector.sharegpt_collector"
+ "reference/camel.data_collectors.alpaca_collector",
+ "reference/camel.data_collectors.base",
+ "reference/camel.data_collectors.sharegpt_collector"
]
},
{
@@ -628,6 +614,20 @@
"reference/camel.loaders.unstructured_io"
]
},
+ {
+ "group": "Runtimes",
+ "pages": [
+ "reference/camel.runtimes.base",
+ "reference/camel.runtimes.configs",
+ "reference/camel.runtimes.daytona_runtime",
+ "reference/camel.runtimes.docker_runtime",
+ "reference/camel.runtimes.llm_guard_runtime",
+ "reference/camel.runtimes.remote_http_runtime",
+ "reference/camel.runtimes.ubuntu_docker_runtime",
+ "reference/camel.runtimes.utils.function_risk_toolkit",
+ "reference/camel.runtimes.utils.ignore_risk_toolkit"
+ ]
+ },
{
"group": "Schemas",
"pages": [
diff --git a/docs/mintlify/key_modules/runtimes.mdx b/docs/mintlify/key_modules/runtimes.mdx
index f4b01a443..0538f6ab6 100644
--- a/docs/mintlify/key_modules/runtimes.mdx
+++ b/docs/mintlify/key_modules/runtimes.mdx
@@ -101,7 +101,7 @@ long as they follow the `FunctionTool` type defined by CAMEL (see [tools](
./tools.md)
module document for more details.)
```
-from camel.runtime import RemoteHttpRuntime
+from camel.runtimes import RemoteHttpRuntime
from camel.toolkits import MathToolkit
if __name__ == "__main__":
diff --git a/docs/mintlify/reference/camel.data_collectors.alpaca_collector.mdx b/docs/mintlify/reference/camel.data_collectors.alpaca_collector.mdx
new file mode 100644
index 000000000..51048dc90
--- /dev/null
+++ b/docs/mintlify/reference/camel.data_collectors.alpaca_collector.mdx
@@ -0,0 +1,64 @@
+<a id="camel.data_collectors.alpaca_collector"></a>
+
+<a id="camel.data_collectors.alpaca_collector.AlpacaDataCollector"></a>
+
+## AlpacaDataCollector
+
+```python
+class AlpacaDataCollector(BaseDataCollector):
+```
+
+<a id="camel.data_collectors.alpaca_collector.AlpacaDataCollector.__init__"></a>
+
+### __init__
+
+```python
+def __init__(self):
+```
+
+<a id="camel.data_collectors.alpaca_collector.AlpacaDataCollector.record"></a>
+
+### record
+
+```python
+def record(self, agent: Union[List[ChatAgent], ChatAgent]):
+```
+
+Inject an agent into the data collector.
+
+**Parameters:**
+
+- **agent** (Union[List[ChatAgent], ChatAgent]): The agent to inject.
+
+<a id="camel.data_collectors.alpaca_collector.AlpacaDataCollector.convert"></a>
+
+### convert
+
+```python
+def convert(self):
+```
+
+Convert the collected data into a dictionary.
+
+<a id="camel.data_collectors.alpaca_collector.AlpacaDataCollector.llm_convert"></a>
+
+### llm_convert
+
+```python
+def llm_convert(
+ self,
+ converter: Optional[OpenAISchemaConverter] = None,
+ prompt: Optional[str] = None
+):
+```
+
+Convert collected data using an LLM schema converter.
+
+**Parameters:**
+
+- **converter** (Optional[OpenAISchemaConverter], optional): The converter to use. (default: :obj:`OpenAISchemaConverter`)
+- **prompt** (Optional[str], optional): Prompt to guide the conversion. (default: :obj:`DEFAULT_CONVERTER_PROMPTS`)
+
+**Returns:**
+
+ Dict[str, str]: The converted data.
diff --git a/docs/mintlify/reference/camel.data_collectors.base.mdx b/docs/mintlify/reference/camel.data_collectors.base.mdx
new file mode 100644
index 000000000..9c24b8d19
--- /dev/null
+++ b/docs/mintlify/reference/camel.data_collectors.base.mdx
@@ -0,0 +1,197 @@
+<a id="camel.data_collectors.base"></a>
+
+<a id="camel.data_collectors.base.CollectorData"></a>
+
+## CollectorData
+
+```python
+class CollectorData:
+```
+
+<a id="camel.data_collectors.base.CollectorData.__init__"></a>
+
+### __init__
+
+```python
+def __init__(
+ self,
+ id: UUID,
+ name: str,
+ role: Literal['user', 'assistant', 'system', 'tool'],
+ message: Optional[str] = None,
+ function_call: Optional[Dict[str, Any]] = None
+):
+```
+
+Create a data item store information about a message.
+Used by the data collector.
+
+**Parameters:**
+
+- **id** (UUID): The id of the message.
+- **name** (str): The name of the agent.
+- **role** (`Literal["user", "assistant", "system", "function"]`): The role of the message.
+- **message** (Optional[str], optional): The message. (default: :obj:`None`)
+- **function_call** (Optional[Dict[str, Any]], optional): The function call. (default: :obj:`None`)
+
+<a id="camel.data_collectors.base.CollectorData.from_context"></a>
+
+### from_context
+
+```python
+def from_context(name, context: Dict[str, Any]):
+```
+
+Create a data collector from a context.
+
+**Parameters:**
+
+- **name** (str): The name of the agent.
+- **context** (Dict[str, Any]): The context.
+
+**Returns:**
+
+ CollectorData: The data collector.
+
+<a id="camel.data_collectors.base.BaseDataCollector"></a>
+
+## BaseDataCollector
+
+```python
+class BaseDataCollector(ABC):
+```
+
+Base class for data collectors.
+
+<a id="camel.data_collectors.base.BaseDataCollector.__init__"></a>
+
+### __init__
+
+```python
+def __init__(self):
+```
+
+Create a data collector.
+
+<a id="camel.data_collectors.base.BaseDataCollector.step"></a>
+
+### step
+
+```python
+def step(
+ self,
+ role: Literal['user', 'assistant', 'system', 'tool'],
+ name: Optional[str] = None,
+ message: Optional[str] = None,
+ function_call: Optional[Dict[str, Any]] = None
+):
+```
+
+Record a message.
+
+**Parameters:**
+
+- **role** (`Literal["user", "assistant", "system", "tool"]`): The role of the message.
+- **name** (Optional[str], optional): The name of the agent. (default: :obj:`None`)
+- **message** (Optional[str], optional): The message to record. (default: :obj:`None`)
+- **function_call** (Optional[Dict[str, Any]], optional): The function call to record. (default: :obj:`None`)
+
+**Returns:**
+
+ Self: The data collector.
+
+<a id="camel.data_collectors.base.BaseDataCollector.record"></a>
+
+### record
+
+```python
+def record(self, agent: Union[List[ChatAgent], ChatAgent]):
+```
+
+Record agents.
+
+**Parameters:**
+
+- **agent** (Union[List[ChatAgent], ChatAgent]): The agent(s) to inject.
+
+<a id="camel.data_collectors.base.BaseDataCollector.start"></a>
+
+### start
+
+```python
+def start(self):
+```
+
+Start recording.
+
+<a id="camel.data_collectors.base.BaseDataCollector.stop"></a>
+
+### stop
+
+```python
+def stop(self):
+```
+
+Stop recording.
+
+<a id="camel.data_collectors.base.BaseDataCollector.recording"></a>
+
+### recording
+
+```python
+def recording(self):
+```
+
+Whether the collector is recording.
+
+<a id="camel.data_collectors.base.BaseDataCollector.reset"></a>
+
+### reset
+
+```python
+def reset(self, reset_agents: bool = True):
+```
+
+Reset the collector.
+
+**Parameters:**
+
+- **reset_agents** (bool, optional): Whether to reset the agents. Defaults to True.
+
+<a id="camel.data_collectors.base.BaseDataCollector.convert"></a>
+
+### convert
+
+```python
+def convert(self):
+```
+
+Convert the collected data.
+
+<a id="camel.data_collectors.base.BaseDataCollector.llm_convert"></a>
+
+### llm_convert
+
+```python
+def llm_convert(self, converter: Any, prompt: Optional[str] = None):
+```
+
+Convert the collected data.
+
+<a id="camel.data_collectors.base.BaseDataCollector.get_agent_history"></a>
+
+### get_agent_history
+
+```python
+def get_agent_history(self, name: str):
+```
+
+Get the message history of an agent.
+
+**Parameters:**
+
+- **name** (str): The name of the agent.
+
+**Returns:**
+
+ List[CollectorData]: The message history of the agent
diff --git a/docs/mintlify/reference/camel.data_collectors.sharegpt_collector.mdx b/docs/mintlify/reference/camel.data_collectors.sharegpt_collector.mdx
new file mode 100644
index 000000000..ef4f31c1d
--- /dev/null
+++ b/docs/mintlify/reference/camel.data_collectors.sharegpt_collector.mdx
@@ -0,0 +1,68 @@
+<a id="camel.data_collectors.sharegpt_collector"></a>
+
+<a id="camel.data_collectors.sharegpt_collector.ShareGPTDataCollector"></a>
+
+## ShareGPTDataCollector
+
+```python
+class ShareGPTDataCollector(BaseDataCollector):
+```
+
+<a id="camel.data_collectors.sharegpt_collector.ShareGPTDataCollector.__init__"></a>
+
+### __init__
+
+```python
+def __init__(self):
+```
+
+<a id="camel.data_collectors.sharegpt_collector.ShareGPTDataCollector.record"></a>
+
+### record
+
+```python
+def record(self, agent: Union[List[ChatAgent], ChatAgent]):
+```
+
+Inject an agent into the data collector.
+
+<a id="camel.data_collectors.sharegpt_collector.ShareGPTDataCollector.convert"></a>
+
+### convert
+
+```python
+def convert(self):
+```
+
+Convert the collected data into a dictionary.
+
+<a id="camel.data_collectors.sharegpt_collector.ShareGPTDataCollector.llm_convert"></a>
+
+### llm_convert
+
+```python
+def llm_convert(
+ self,
+ converter: Optional[OpenAISchemaConverter] = None,
+ prompt: Optional[str] = None
+):
+```
+
+Convert collected data using an LLM schema converter.
+
+**Parameters:**
+
+- **converter** (Optional[OpenAISchemaConverter], optional): The converter to use. (default: :obj:`OpenAISchemaConverter`)
+- **prompt** (Optional[str], optional): Prompt to guide the conversion. (default: :obj:`DEFAULT_CONVERTER_PROMPTS`)
+
+**Returns:**
+
+ Dict[str, str]: The converted data.
+
+<a id="camel.data_collectors.sharegpt_collector.ShareGPTDataCollector.to_sharegpt_conversation"></a>
+
+### to_sharegpt_conversation
+
+```python
+def to_sharegpt_conversation(data: Dict[str, Any]):
+```
diff --git a/docs/mintlify/reference/camel.runtimes.base.mdx b/docs/mintlify/reference/camel.runtimes.base.mdx
new file mode 100644
index 000000000..b7c4d9269
--- /dev/null
+++ b/docs/mintlify/reference/camel.runtimes.base.mdx
@@ -0,0 +1,54 @@
+<a id="camel.runtimes.base"></a>
+
+<a id="camel.runtimes.base.BaseRuntime"></a>
+
+## BaseRuntime
+
+```python
+class BaseRuntime(ABC):
+```
+
+An abstract base class for all CAMEL runtimes.
+
+<a id="camel.runtimes.base.BaseRuntime.__init__"></a>
+
+### __init__
+
+```python
+def __init__(self):
+```
+
+<a id="camel.runtimes.base.BaseRuntime.add"></a>
+
+### add
+
+```python
+def add(
+ self,
+ funcs: Union[FunctionTool, List[FunctionTool]],
+ *args: Any,
+ **kwargs: Any
+):
+```
+
+Adds a new tool to the runtime.
+
+<a id="camel.runtimes.base.BaseRuntime.reset"></a>
+
+### reset
+
+```python
+def reset(self, *args: Any, **kwargs: Any):
+```
+
+Resets the runtime to its initial state.
+
+<a id="camel.runtimes.base.BaseRuntime.get_tools"></a>
+
+### get_tools
+
+```python
+def get_tools(self):
+```
+
+Returns a list of all tools in the runtime.
diff --git a/docs/mintlify/reference/camel.runtimes.configs.mdx b/docs/mintlify/reference/camel.runtimes.configs.mdx
new file mode 100644
index 000000000..625bc8023
--- /dev/null
+++ b/docs/mintlify/reference/camel.runtimes.configs.mdx
@@ -0,0 +1,32 @@
+<a id="camel.runtimes.configs"></a>
+
+<a id="camel.runtimes.configs.TaskConfig"></a>
+
+## TaskConfig
+
+```python
+class TaskConfig(BaseModel):
+```
+
+A configuration for a task to run a command inside the container.
+
+Arttributes:
+cmd (str or list): Command to be executed
+stdout (bool): Attach to stdout. (default: :obj: `True`)
+stderr (bool): Attach to stderr. (default: :obj: `True`)
+stdin (bool): Attach to stdin. (default: :obj: `False`)
+tty (bool): Allocate a pseudo-TTY. (default: :obj: `False`)
+privileged (bool): Run as privileged. (default: :obj: `False`)
+user (str): User to execute command as. (default: :obj: `""`)
+detach (bool): If true, detach from the exec command.
+(default: :obj: `False`)
+stream (bool): Stream response data. (default: :obj: `False`)
+socket (bool): Return the connection socket to allow custom
+read/write operations. (default: :obj: `False`)
+environment (dict or list): A dictionary or a list of strings in
+the following format `__INLINE_CODE_9__` or
+`__INLINE_CODE_10____INLINE_CODE_11__None`)
+workdir (str): Path to working directory for this exec session.
+(default: :obj: `None`)
+demux (bool): Return stdout and stderr separately. (default: :obj:
+`False`)
diff --git a/docs/mintlify/reference/camel.runtimes.daytona_runtime.mdx b/docs/mintlify/reference/camel.runtimes.daytona_runtime.mdx
new file mode 100644
index 000000000..b256a7e5d
--- /dev/null
+++ b/docs/mintlify/reference/camel.runtimes.daytona_runtime.mdx
@@ -0,0 +1,136 @@
+<a id="camel.runtimes.daytona_runtime"></a>
+
+<a id="camel.runtimes.daytona_runtime.DaytonaRuntime"></a>
+
+## DaytonaRuntime
+
+```python
+class DaytonaRuntime(BaseRuntime):
+```
+
+A runtime that executes functions in a Daytona sandbox environment.
+Requires the Daytona server to be running and an API key configured.
+
+**Parameters:**
+
+- **api_key** (Optional[str]): The Daytona API key for authentication. If not provided, it will try to use the DAYTONA_API_KEY environment variable. (default: :obj: `None`)
+- **api_url** (Optional[str]): The URL of the Daytona server. If not provided, it will try to use the DAYTONA_API_URL environment variable. If none is provided, it will use "http://localhost:8000". (default: :obj: `None`)
+- **language** (Optional[str]): The programming language for the sandbox. (default: :obj: `"python"`)
+
+<a id="camel.runtimes.daytona_runtime.DaytonaRuntime.__init__"></a>
+
+### __init__
+
+```python
+def __init__(
+ self,
+ api_key: Optional[str] = None,
+ api_url: Optional[str] = None,
+ language: Optional[str] = 'python'
+):
+```
+
+<a id="camel.runtimes.daytona_runtime.DaytonaRuntime.build"></a>
+
+### build
+
+```python
+def build(self):
+```
+
+**Returns:**
+
+ DaytonaRuntime: The current runtime.
+
+<a id="camel.runtimes.daytona_runtime.DaytonaRuntime._cleanup"></a>
+
+### _cleanup
+
+```python
+def _cleanup(self):
+```
+
+Clean up the sandbox when exiting.
+
+<a id="camel.runtimes.daytona_runtime.DaytonaRuntime.add"></a>
+
+### add
+
+```python
+def add(
+ self,
+ funcs: Union[FunctionTool, List[FunctionTool]],
+ entrypoint: str,
+ arguments: Optional[Dict[str, Any]] = None
+):
+```
+
+Add a function or list of functions to the runtime.
+
+**Parameters:**
+
+- **funcs** (Union[FunctionTool, List[FunctionTool]]): The function or list of functions to add.
+- **entrypoint** (str): The entrypoint for the function.
+- **arguments** (Optional[Dict[str, Any]]): The arguments for the function. (default: :obj: `None`)
+
+**Returns:**
+
+ DaytonaRuntime: The current runtime.
+
+<a id="camel.runtimes.daytona_runtime.DaytonaRuntime.info"></a>
+
+### info
+
+```python
+def info(self):
+```
+
+**Returns:**
+
+ str: Information about the sandbox.
+
+<a id="camel.runtimes.daytona_runtime.DaytonaRuntime.__del__"></a>
+
+### __del__
+
+```python
+def __del__(self):
+```
+
+Clean up the sandbox when the object is deleted.
+
+<a id="camel.runtimes.daytona_runtime.DaytonaRuntime.stop"></a>
+
+### stop
+
+```python
+def stop(self):
+```
+
+**Returns:**
+
+ DaytonaRuntime: The current runtime.
+
+<a id="camel.runtimes.daytona_runtime.DaytonaRuntime.reset"></a>
+
+### reset
+
+```python
+def reset(self):
+```
+
+**Returns:**
+
+ DaytonaRuntime: The current runtime.
+
+<a id="camel.runtimes.daytona_runtime.DaytonaRuntime.docs"></a>
+
+### docs
+
+```python
+def docs(self):
+```
+
+**Returns:**
+
+ str: The URL for the API documentation.
diff --git a/docs/mintlify/reference/camel.runtimes.docker_runtime.mdx b/docs/mintlify/reference/camel.runtimes.docker_runtime.mdx
new file mode 100644
index 000000000..190a8639d
--- /dev/null
+++ b/docs/mintlify/reference/camel.runtimes.docker_runtime.mdx
@@ -0,0 +1,261 @@
+<a id="camel.runtimes.docker_runtime"></a>
+
+<a id="camel.runtimes.docker_runtime.DockerRuntime"></a>
+
+## DockerRuntime
+
+```python
+class DockerRuntime(BaseRuntime):
+```
+
+A class representing a runtime environment using Docker.
+This class automatically wraps functions to be executed
+in a Docker container.
+
+**Parameters:**
+
+- **image** (str): The name of the Docker image to use for the runtime.
+- **port** (int): The port number to use for the runtime API. (default: :obj: `8000`)
+- **remove** (bool): Whether to remove the container after stopping it. ' (default: :obj: `True`)
+- **kwargs** (dict): Additional keyword arguments to pass to the Docker client.
+
+<a id="camel.runtimes.docker_runtime.DockerRuntime.__init__"></a>
+
+### __init__
+
+```python
+def __init__(
+ self,
+ image: str,
+ port: int = 8000,
+ remove: bool = True,
+ **kwargs
+):
+```
+
+<a id="camel.runtimes.docker_runtime.DockerRuntime.mount"></a>
+
+### mount
+
+```python
+def mount(self, path: str, mount_path: str):
+```
+
+Mount a local directory to the container.
+
+**Parameters:**
+
+- **path** (str): The local path to mount.
+- **mount_path** (str): The path to mount the local directory to in the container.
+
+**Returns:**
+
+ DockerRuntime: The DockerRuntime instance.
+
+<a id="camel.runtimes.docker_runtime.DockerRuntime.copy"></a>
+
+### copy
+
+```python
+def copy(self, source: str, dest: str):
+```
+
+Copy a file or directory to the container.
+
+**Parameters:**
+
+- **source** (str): The local path to the file.
+- **dest** (str): The path to copy the file to in the container.
+
+**Returns:**
+
+ DockerRuntime: The DockerRuntime instance.
+
+<a id="camel.runtimes.docker_runtime.DockerRuntime.add_task"></a>
+
+### add_task
+
+```python
+def add_task(self, task: TaskConfig):
+```
+
+Add a task to run a command inside the container when building.
+Similar to `docker exec`.
+
+**Parameters:**
+
+- **task** (TaskConfig): The configuration for the task.
+
+**Returns:**
+
+ DockerRuntime: The DockerRuntime instance.
+
+<a id="camel.runtimes.docker_runtime.DockerRuntime.exec_run"></a>
+
+### exec_run
+
+```python
+def exec_run(self, task: TaskConfig):
+```
+
+Run a command inside this container. Similar to `docker exec`.
+
+**Parameters:**
+
+- **task** (TaskConfig): The configuration for the task.
+
+**Returns:**
+
+ (ExecResult): A tuple of (exit_code, output)
+exit_code: (int):
+Exit code for the executed command or `None` if
+either `stream` or `socket` is `True`.
+output: (generator, bytes, or tuple):
+If `stream=True`, a generator yielding response chunks.
+If `socket=True`, a socket object for the connection.
+If `demux=True`, a tuple of two bytes: stdout and stderr.
+A bytestring containing response data otherwise.
+
+<a id="camel.runtimes.docker_runtime.DockerRuntime.build"></a>
+
+### build
+
+```python
+def build(self, time_out: int = 15):
+```
+
+Build the Docker container and start it.
+
+**Parameters:**
+
+- **time_out** (int): The number of seconds to wait for the container to start. (default: :obj: `15`)
+
+**Returns:**
+
+ DockerRuntime: The DockerRuntime instance.
+
+<a id="camel.runtimes.docker_runtime.DockerRuntime.add"></a>
+
+### add
+
+```python
+def add(
+ self,
+ funcs: Union[FunctionTool, List[FunctionTool]],
+ entrypoint: str,
+ redirect_stdout: bool = False,
+ arguments: Optional[Dict[str, Any]] = None
+):
+```
+
+Add a function or list of functions to the runtime.
+
+**Parameters:**
+
+- **funcs** (Union[FunctionTool, List[FunctionTool]]): The function or list of functions to add.
+- **entrypoint** (str): The entrypoint for the function.
+- **redirect_stdout** (bool): Whether to return the stdout of the function. (default: :obj: `False`)
+- **arguments** (Optional[Dict[str, Any]]): The arguments for the function. (default: :obj: `None`)
+
+**Returns:**
+
+ DockerRuntime: The DockerRuntime instance.
+
+<a id="camel.runtimes.docker_runtime.DockerRuntime.reset"></a>
+
+### reset
+
+```python
+def reset(self):
+```
+
+**Returns:**
+
+ DockerRuntime: The DockerRuntime instance.
+
+<a id="camel.runtimes.docker_runtime.DockerRuntime.stop"></a>
+
+### stop
+
+```python
+def stop(self, remove: Optional[bool] = None):
+```
+
+stop the Docker container.
+
+**Parameters:**
+
+- **remove** (Optional[bool]): Whether to remove the container after stopping it. (default: :obj: `None`)
+
+**Returns:**
+
+ DockerRuntime: The DockerRuntime instance.
+
+<a id="camel.runtimes.docker_runtime.DockerRuntime.ok"></a>
+
+### ok
+
+```python
+def ok(self):
+```
+
+**Returns:**
+
+ bool: Whether the API Server is running.
+
+<a id="camel.runtimes.docker_runtime.DockerRuntime.wait"></a>
+
+### wait
+
+```python
+def wait(self, timeout: int = 10):
+```
+
+Wait for the API Server to be ready.
+
+**Parameters:**
+
+- **timeout** (int): The number of seconds to wait. (default: :obj: `10`) (default: 10)
+
+**Returns:**
+
+ bool: Whether the API Server is ready.
+
+<a id="camel.runtimes.docker_runtime.DockerRuntime.__enter__"></a>
+
+### __enter__
+
+```python
+def __enter__(self):
+```
+
+**Returns:**
+
+ DockerRuntime: The DockerRuntime instance.
+
+<a id="camel.runtimes.docker_runtime.DockerRuntime.__exit__"></a>
+
+### __exit__
+
+```python
+def __exit__(
+ self,
+ exc_type,
+ exc_val,
+ exc_tb
+):
+```
+
+Exit the context manager.
+
+<a id="camel.runtimes.docker_runtime.DockerRuntime.docs"></a>
+
+### docs
+
+```python
+def docs(self):
+```
+
+**Returns:**
+
+ str: The URL for the API documentation.
diff --git a/docs/mintlify/reference/camel.runtimes.llm_guard_runtime.mdx b/docs/mintlify/reference/camel.runtimes.llm_guard_runtime.mdx
new file mode 100644
index 000000000..15c64ceb1
--- /dev/null
+++ b/docs/mintlify/reference/camel.runtimes.llm_guard_runtime.mdx
@@ -0,0 +1,64 @@
+<a id="camel.runtimes.llm_guard_runtime"></a>
+
+<a id="camel.runtimes.llm_guard_runtime.LLMGuardRuntime"></a>
+
+## LLMGuardRuntime
+
+```python
+class LLMGuardRuntime(BaseRuntime):
+```
+
+A runtime that evaluates the risk level of functions using
+a language model.
+
+**Parameters:**
+
+- **prompt** (str): The prompt to use for the language model. (default: :obj:`GUARDPROMPT`)
+- **model** (BaseModelBackend): The language model to use. (default: :obj: `None`)
+- **verbose** (bool): Whether to print verbose output. (default: :obj: `False`)
+
+<a id="camel.runtimes.llm_guard_runtime.LLMGuardRuntime.__init__"></a>
+
+### __init__
+
+```python
+def __init__(
+ self,
+ prompt: str = GUARDPROMPT,
+ model: Optional[BaseModelBackend] = None,
+ verbose: bool = False
+):
+```
+
+<a id="camel.runtimes.llm_guard_runtime.LLMGuardRuntime.add"></a>
+
+### add
+
+```python
+def add(
+ self,
+ funcs: Union[FunctionTool, List[FunctionTool]],
+ threshold: int = 2
+):
+```
+
+Add a function or list of functions to the runtime.
+
+**Parameters:**
+
+- **funcs** (FunctionTool or List[FunctionTool]): The function or list of functions to add.
+- **threshold** (int): The risk threshold for functions. (default: :obj:`2`)
+
+**Returns:**
+
+ LLMGuardRuntime: The current runtime.
+
+<a id="camel.runtimes.llm_guard_runtime.LLMGuardRuntime.reset"></a>
+
+### reset
+
+```python
+def reset(self):
+```
+
+Resets the runtime to its initial state.
diff --git a/docs/mintlify/reference/camel.runtimes.remote_http_runtime.mdx b/docs/mintlify/reference/camel.runtimes.remote_http_runtime.mdx
new file mode 100644
index 000000000..24e63a40b
--- /dev/null
+++ b/docs/mintlify/reference/camel.runtimes.remote_http_runtime.mdx
@@ -0,0 +1,156 @@
+<a id="camel.runtimes.remote_http_runtime"></a>
+
+<a id="camel.runtimes.remote_http_runtime.RemoteHttpRuntime"></a>
+
+## RemoteHttpRuntime
+
+```python
+class RemoteHttpRuntime(BaseRuntime):
+```
+
+A runtime that runs functions in a remote HTTP server.
+You need to run the API server in the remote server first.
+
+**Parameters:**
+
+- **host** (str): The host of the remote server.
+- **port** (int): The port of the remote server. (default: :obj: `8000`) (default: 8000)
+- **python_exec** (str): The python executable to run the API server. (default: :obj: `python3`)
+
+<a id="camel.runtimes.remote_http_runtime.RemoteHttpRuntime.__init__"></a>
+
+### __init__
+
+```python
+def __init__(
+ self,
+ host: str,
+ port: int = 8000,
+ python_exec: str = 'python3'
+):
+```
+
+<a id="camel.runtimes.remote_http_runtime.RemoteHttpRuntime.build"></a>
+
+### build
+
+```python
+def build(self):
+```
+
+**Returns:**
+
+ RemoteHttpRuntime: The current runtime.
+
+<a id="camel.runtimes.remote_http_runtime.RemoteHttpRuntime._cleanup"></a>
+
+### _cleanup
+
+```python
+def _cleanup(self):
+```
+
+Clean up the API server when exiting.
+
+<a id="camel.runtimes.remote_http_runtime.RemoteHttpRuntime.add"></a>
+
+### add
+
+```python
+def add(
+ self,
+ funcs: Union[FunctionTool, List[FunctionTool]],
+ entrypoint: str,
+ redirect_stdout: bool = False,
+ arguments: Optional[Dict[str, Any]] = None
+):
+```
+
+Add a function or list of functions to the runtime.
+
+**Parameters:**
+
+- **funcs** (Union[FunctionTool, List[FunctionTool]]): The function or list of functions to add.
+- **entrypoint** (str): The entrypoint for the function.
+- **redirect_stdout** (bool): Whether to return the stdout of the function. (default: :obj: `False`)
+- **arguments** (Optional[Dict[str, Any]]): The arguments for the function. (default: :obj: `None`)
+
+**Returns:**
+
+ RemoteHttpRuntime: The current runtime.
+
+<a id="camel.runtimes.remote_http_runtime.RemoteHttpRuntime.ok"></a>
+
+### ok
+
+```python
+def ok(self):
+```
+
+**Returns:**
+
+ bool: Whether the API Server is running.
+
+<a id="camel.runtimes.remote_http_runtime.RemoteHttpRuntime.wait"></a>
+
+### wait
+
+```python
+def wait(self, timeout: int = 10):
+```
+
+Wait for the API Server to be ready.
+
+**Parameters:**
+
+- **timeout** (int): The number of seconds to wait. (default: :obj: `10`) (default: 10)
+
+**Returns:**
+
+ bool: Whether the API Server is ready.
+
+<a id="camel.runtimes.remote_http_runtime.RemoteHttpRuntime.__del__"></a>
+
+### __del__
+
+```python
+def __del__(self):
+```
+
+Clean up the API server when the object is deleted.
+
+<a id="camel.runtimes.remote_http_runtime.RemoteHttpRuntime.stop"></a>
+
+### stop
+
+```python
+def stop(self):
+```
+
+**Returns:**
+
+ RemoteHttpRuntime: The current runtime.
+
+<a id="camel.runtimes.remote_http_runtime.RemoteHttpRuntime.reset"></a>
+
+### reset
+
+```python
+def reset(self):
+```
+
+**Returns:**
+
+ RemoteHttpRuntime: The current runtime.
+
+<a id="camel.runtimes.remote_http_runtime.RemoteHttpRuntime.docs"></a>
+
+### docs
+
+```python
+def docs(self):
+```
+
+**Returns:**
+
+ str: The URL for the API documentation.
diff --git a/docs/mintlify/reference/camel.runtimes.ubuntu_docker_runtime.mdx b/docs/mintlify/reference/camel.runtimes.ubuntu_docker_runtime.mdx
new file mode 100644
index 000000000..b98411999
--- /dev/null
+++ b/docs/mintlify/reference/camel.runtimes.ubuntu_docker_runtime.mdx
@@ -0,0 +1,134 @@
+<a id="camel.runtimes.ubuntu_docker_runtime"></a>
+
+<a id="camel.runtimes.ubuntu_docker_runtime.UbuntuDockerRuntime"></a>
+
+## UbuntuDockerRuntime
+
+```python
+class UbuntuDockerRuntime(DockerRuntime):
+```
+
+A specialized Docker runtime for Ubuntu-based environments.
+
+This runtime includes specific configurations and setup for Ubuntu
+containers, including proper Python path handling and environment setup.
+It provides methods for executing Python files, managing the container
+lifecycle, and handling file operations within the Ubuntu container.
+
+Attributes:
+python_path (str): Path to the Python interpreter in the container
+docker_config (dict): Configuration dict for Docker container setup
+
+<a id="camel.runtimes.ubuntu_docker_runtime.UbuntuDockerRuntime.__init__"></a>
+
+### __init__
+
+```python
+def __init__(
+ self,
+ image: str,
+ port: int = 0,
+ remove: bool = True,
+ python_path: str = '/usr/bin/python3',
+ **kwargs
+):
+```
+
+Initialize the Ubuntu Docker Runtime.
+
+**Parameters:**
+
+- **image** (str): Docker image name to use
+- **port** (int, optional): Port to expose. Defaults to 0 (random port) (default: 0 (random port)
+- **remove** (bool, optional): Whether to remove container after use. Defaults to True
+- **python_path** (str, optional): Path to Python interpreter. Defaults to "/usr/bin/python3" **kwargs: Additional arguments passed to DockerRuntime
+
+<a id="camel.runtimes.ubuntu_docker_runtime.UbuntuDockerRuntime.add"></a>
+
+### add
+
+```python
+def add(
+ self,
+ funcs: Union[FunctionTool, List[FunctionTool]],
+ entrypoint: str,
+ redirect_stdout: bool = False,
+ arguments: Optional[dict] = None
+):
+```
+
+Add functions to the runtime with Ubuntu-specific modifications.
+
+**Returns:**
+
+ Self for method chaining
+
+<a id="camel.runtimes.ubuntu_docker_runtime.UbuntuDockerRuntime._setup_default_mounts"></a>
+
+### _setup_default_mounts
+
+```python
+def _setup_default_mounts(self):
+```
+
+Setup default volume mounts for the container.
+
+This method can be extended to add Ubuntu-specific volume mounts.
+
+<a id="camel.runtimes.ubuntu_docker_runtime.UbuntuDockerRuntime.build"></a>
+
+### build
+
+```python
+def build(self, time_out: int = 15):
+```
+
+Build and initialize the Ubuntu container with proper setup.
+
+**Parameters:**
+
+- **time_out** (int): Timeout in seconds for build operation
+
+**Returns:**
+
+ Self for method chaining
+
+<a id="camel.runtimes.ubuntu_docker_runtime.UbuntuDockerRuntime.exec_python_file"></a>
+
+### exec_python_file
+
+```python
+def exec_python_file(
+ self,
+ local_file_path: str,
+ container_path: Optional[str] = None,
+ args: Optional[List[str]] = None,
+ env: Optional[dict] = None,
+ callback: Optional[Callable[[str], None]] = None
+):
+```
+
+Execute a Python file inside the Docker container.
+
+**Parameters:**
+
+- **env**: Additional environment variables to set for the execution
+- **callback**: Optional function to process each line of output If None, output is printed to stdout
+
+<a id="camel.runtimes.ubuntu_docker_runtime.UbuntuDockerRuntime._create_archive_from_file"></a>
+
+### _create_archive_from_file
+
+```python
+def _create_archive_from_file(self, file_path: Union[str, Path]):
+```
+
+Create a tar archive from a single file for docker.put_archive().
+
+**Parameters:**
+
+- **file_path**: Path to the file to archive
+
+**Returns:**
+
+ bytes: The tar archive as bytes
diff --git a/docs/mintlify/reference/camel.runtimes.utils.function_risk_toolkit.mdx b/docs/mintlify/reference/camel.runtimes.utils.function_risk_toolkit.mdx
new file mode 100644
index 000000000..016f044a4
--- /dev/null
+++ b/docs/mintlify/reference/camel.runtimes.utils.function_risk_toolkit.mdx
@@ -0,0 +1,52 @@
+<a id="camel.runtimes.utils.function_risk_toolkit"></a>
+
+<a id="camel.runtimes.utils.function_risk_toolkit.FunctionRiskToolkit"></a>
+
+## FunctionRiskToolkit
+
+```python
+class FunctionRiskToolkit(BaseToolkit):
+```
+
+A toolkit for assessing the risk associated with functions.
+
+**Parameters:**
+
+- **verbose** (Optional[bool]): Whether to print verbose output. (default: :obj:`False`)
+
+<a id="camel.runtimes.utils.function_risk_toolkit.FunctionRiskToolkit.__init__"></a>
+
+### __init__
+
+```python
+def __init__(self, verbose: Optional[bool] = False):
+```
+
+<a id="camel.runtimes.utils.function_risk_toolkit.FunctionRiskToolkit.function_risk"></a>
+
+### function_risk
+
+```python
+def function_risk(self, score: int, reason: str):
+```
+
+Provides an assessment of the potential risk associated
+with a function.
+
+**Parameters:**
+
+- **score** (int): The risk level associated with the function, ranging from 1 to 3: - 1: No harm (e.g., simple math operations, content searches) - 2: Minimal harm (e.g., accessing user files) - 3: Risk present (e.g., deleting files, modifying the file system)
+- **reason** (str): A brief explanation of the reasoning behind the assigned score, describing the specific aspects that contribute to the assessed risk.
+
+<a id="camel.runtimes.utils.function_risk_toolkit.FunctionRiskToolkit.get_tools"></a>
+
+### get_tools
+
+```python
+def get_tools(self):
+```
+
+**Returns:**
+
+ List[FunctionTool]: A list of FunctionTool objects
+representing the functions in the toolkit.
diff --git a/docs/mintlify/reference/camel.runtimes.utils.ignore_risk_toolkit.mdx b/docs/mintlify/reference/camel.runtimes.utils.ignore_risk_toolkit.mdx
new file mode 100644
index 000000000..015b8b963
--- /dev/null
+++ b/docs/mintlify/reference/camel.runtimes.utils.ignore_risk_toolkit.mdx
@@ -0,0 +1,71 @@
+<a id="camel.runtimes.utils.ignore_risk_toolkit"></a>
+
+<a id="camel.runtimes.utils.ignore_risk_toolkit.IgnoreRiskToolkit"></a>
+
+## IgnoreRiskToolkit
+
+```python
+class IgnoreRiskToolkit(BaseToolkit):
+```
+
+A toolkit for ignoring risks associated with functions.
+
+**Parameters:**
+
+- **function_names** (Optional[List[str]]): A list of function names to ignore risks for. (default: :obj:`None`)
+- **verbose** (Optional[bool]): Whether to print verbose output. (default: :obj:`False`)
+
+<a id="camel.runtimes.utils.ignore_risk_toolkit.IgnoreRiskToolkit.__init__"></a>
+
+### __init__
+
+```python
+def __init__(
+ self,
+ function_name: Optional[List[str]] = None,
+ verbose: Optional[bool] = False
+):
+```
+
+<a id="camel.runtimes.utils.ignore_risk_toolkit.IgnoreRiskToolkit.add"></a>
+
+### add
+
+```python
+def add(self, name: str):
+```
+
+Adds a function to the toolkit.
+
+**Parameters:**
+
+- **name** (str): The name of the function to add.
+
+<a id="camel.runtimes.utils.ignore_risk_toolkit.IgnoreRiskToolkit.ignore_risk"></a>
+
+### ignore_risk
+
+```python
+def ignore_risk(self, name: str, reason: str):
+```
+
+Force ignores the risk associated with named function. This ONLY
+ignores the RISK for the NEXT Function Call.
+
+**Parameters:**
+
+- **name** (str): The name of the function to ignore.
+- **reason** (str): A brief explanation of the reasoning behind the decision to ignore the risk.
+
+<a id="camel.runtimes.utils.ignore_risk_toolkit.IgnoreRiskToolkit.get_tools"></a>
+
+### get_tools
+
+```python
+def get_tools(self):
+```
+
+**Returns:**
+
+ List[FunctionTool]: A list of FunctionTool objects representing
+the functions in the toolkit.
diff --git a/examples/benchmarks/gaia.py b/examples/benchmarks/gaia.py
index 2e4b2f629..041ea0d9e 100644
--- a/examples/benchmarks/gaia.py
+++ b/examples/benchmarks/gaia.py
@@ -16,7 +16,7 @@
from camel.agents import ChatAgent
from camel.benchmarks import DefaultGAIARetriever, GAIABenchmark
from camel.models import ModelFactory
-from camel.runtime import RemoteHttpRuntime
+from camel.runtimes import RemoteHttpRuntime
from camel.toolkits import CodeExecutionToolkit
from camel.types import ModelPlatformType, ModelType, StorageType
diff --git a/examples/data_collector/alpaca_collector.py b/examples/data_collectors/alpaca_collector.py
similarity index 98%
rename from examples/data_collector/alpaca_collector.py
rename to examples/data_collectors/alpaca_collector.py
index ba32f66fe..68f4dfdd3 100644
--- a/examples/data_collector/alpaca_collector.py
+++ b/examples/data_collectors/alpaca_collector.py
@@ -14,7 +14,7 @@
from camel.agents.chat_agent import ChatAgent
from camel.configs.openai_config import ChatGPTConfig
-from camel.data_collector import AlpacaDataCollector
+from camel.data_collectors import AlpacaDataCollector
from camel.models.model_factory import ModelFactory
from camel.types.enums import ModelPlatformType, ModelType
diff --git a/examples/data_collector/sharegpt_collector.py b/examples/data_collectors/sharegpt_collector.py
similarity index 98%
rename from examples/data_collector/sharegpt_collector.py
rename to examples/data_collectors/sharegpt_collector.py
index d6829be8b..cb177c51f 100644
--- a/examples/data_collector/sharegpt_collector.py
+++ b/examples/data_collectors/sharegpt_collector.py
@@ -16,7 +16,7 @@ import json
from camel.agents import ChatAgent
from camel.configs import ChatGPTConfig
-from camel.data_collector import ShareGPTDataCollector
+from camel.data_collectors import ShareGPTDataCollector
from camel.models import ModelFactory
from camel.toolkits import MathToolkit
from camel.types import ModelPlatformType, ModelType
diff --git a/examples/runtime/code_execution_with_docker_runtime.py b/examples/runtimes/code_execution_with_docker_runtime.py
similarity index 98%
rename from examples/runtime/code_execution_with_docker_runtime.py
rename to examples/runtimes/code_execution_with_docker_runtime.py
index 60279f143..9afe5a2ea 100644
--- a/examples/runtime/code_execution_with_docker_runtime.py
+++ b/examples/runtimes/code_execution_with_docker_runtime.py
@@ -17,7 +17,7 @@ from colorama import Fore
from camel.agents import ChatAgent
from camel.configs import ChatGPTConfig
from camel.models import ModelFactory
-from camel.runtime import DockerRuntime
+from camel.runtimes import DockerRuntime
from camel.toolkits.code_execution import CodeExecutionToolkit
from camel.types import ModelPlatformType, ModelType
from camel.utils import print_text_animated
diff --git a/examples/runtime/code_execution_with_llm_guard_runtime.py b/examples/runtimes/code_execution_with_llm_guard_runtime.py
similarity index 98%
rename from examples/runtime/code_execution_with_llm_guard_runtime.py
rename to examples/runtimes/code_execution_with_llm_guard_runtime.py
index 70473ece5..a88f9d33d 100644
--- a/examples/runtime/code_execution_with_llm_guard_runtime.py
+++ b/examples/runtimes/code_execution_with_llm_guard_runtime.py
@@ -17,7 +17,7 @@ from colorama import Fore
from camel.agents import ChatAgent
from camel.configs import ChatGPTConfig
from camel.models import ModelFactory
-from camel.runtime import LLMGuardRuntime
+from camel.runtimes import LLMGuardRuntime
from camel.toolkits.code_execution import CodeExecutionToolkit
from camel.types import ModelPlatformType, ModelType
from camel.utils import print_text_animated
diff --git a/examples/runtime/daytona_runtime.py b/examples/runtimes/daytona_runtime.py
similarity index 98%
rename from examples/runtime/daytona_runtime.py
rename to examples/runtimes/daytona_runtime.py
index 777d53d9b..ee132b6e2 100644
--- a/examples/runtime/daytona_runtime.py
+++ b/examples/runtimes/daytona_runtime.py
@@ -18,7 +18,7 @@ from colorama import Fore
from camel.agents import ChatAgent
from camel.models import ModelFactory
-from camel.runtime import DaytonaRuntime
+from camel.runtimes import DaytonaRuntime
from camel.toolkits.code_execution import CodeExecutionToolkit
from camel.toolkits.function_tool import FunctionTool
from camel.types import ModelPlatformType, ModelType
diff --git a/examples/runtime/docker_runtime.py b/examples/runtimes/docker_runtime.py
similarity index 98%
rename from examples/runtime/docker_runtime.py
rename to examples/runtimes/docker_runtime.py
index 07d221383..9e70bfaf5 100644
--- a/examples/runtime/docker_runtime.py
+++ b/examples/runtimes/docker_runtime.py
@@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
-from camel.runtime import DockerRuntime
+from camel.runtimes import DockerRuntime
from camel.toolkits import CodeExecutionToolkit, MathToolkit
if __name__ == "__main__":
diff --git a/examples/runtime/docker_runtime_with_tasks.py b/examples/runtimes/docker_runtime_with_tasks.py
similarity index 97%
rename from examples/runtime/docker_runtime_with_tasks.py
rename to examples/runtimes/docker_runtime_with_tasks.py
index 738ad1dc6..c0f25bd14 100644
--- a/examples/runtime/docker_runtime_with_tasks.py
+++ b/examples/runtimes/docker_runtime_with_tasks.py
@@ -17,7 +17,7 @@ from colorama import Fore
from camel.agents import ChatAgent
from camel.configs import ChatGPTConfig
from camel.models import ModelFactory
-from camel.runtime import DockerRuntime, TaskConfig
+from camel.runtimes import DockerRuntime, TaskConfig
from camel.toolkits.code_execution import CodeExecutionToolkit
from camel.types import ModelPlatformType, ModelType
from camel.utils import print_text_animated
diff --git a/examples/runtime/remote_http_runtime.py b/examples/runtimes/remote_http_runtime.py
similarity index 97%
rename from examples/runtime/remote_http_runtime.py
rename to examples/runtimes/remote_http_runtime.py
index 363a54f94..3c57a2990 100644
--- a/examples/runtime/remote_http_runtime.py
+++ b/examples/runtimes/remote_http_runtime.py
@@ -11,7 +11,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
-from camel.runtime import RemoteHttpRuntime
+from camel.runtimes import RemoteHttpRuntime
from camel.toolkits import MathToolkit
if __name__ == "__main__":
diff --git a/examples/runtime/ubuntu_docker_runtime/Dockerfile b/examples/runtimes/ubuntu_docker_runtime/Dockerfile
similarity index 100%
rename from examples/runtime/ubuntu_docker_runtime/Dockerfile
rename to examples/runtimes/ubuntu_docker_runtime/Dockerfile
diff --git a/examples/runtime/ubuntu_docker_runtime/README.md b/examples/runtimes/ubuntu_docker_runtime/README.md
similarity index 100%
rename from examples/runtime/ubuntu_docker_runtime/README.md
rename to examples/runtimes/ubuntu_docker_runtime/README.md
diff --git a/examples/runtime/ubuntu_docker_runtime/manage_camel_docker.sh b/examples/runtimes/ubuntu_docker_runtime/manage_camel_docker.sh
similarity index 100%
rename from examples/runtime/ubuntu_docker_runtime/manage_camel_docker.sh
rename to examples/runtimes/ubuntu_docker_runtime/manage_camel_docker.sh
diff --git a/examples/runtime/ubuntu_docker_runtime/ubuntu_docker_example.py b/examples/runtimes/ubuntu_docker_runtime/ubuntu_docker_example.py
similarity index 97%
rename from examples/runtime/ubuntu_docker_runtime/ubuntu_docker_example.py
rename to examples/runtimes/ubuntu_docker_runtime/ubuntu_docker_example.py
index 2711b1796..441c61c58 100644
--- a/examples/runtime/ubuntu_docker_runtime/ubuntu_docker_example.py
+++ b/examples/runtimes/ubuntu_docker_runtime/ubuntu_docker_example.py
@@ -15,7 +15,7 @@
import os
import sys
-from camel.runtime import UbuntuDockerRuntime
+from camel.runtimes import UbuntuDockerRuntime
def main():
diff --git a/examples/verifier/math_verifier_example.py b/examples/verifiers/math_verifier_example.py
similarity index 100%
rename from examples/verifier/math_verifier_example.py
rename to examples/verifiers/math_verifier_example.py
diff --git a/examples/verifier/physics_verifier_example.py b/examples/verifiers/physics_verifier_example.py
similarity index 100%
rename from examples/verifier/physics_verifier_example.py
rename to examples/verifiers/physics_verifier_example.py
diff --git a/examples/verifier/python_verifier_example.py b/examples/verifiers/python_verifier_example.py
similarity index 100%
rename from examples/verifier/python_verifier_example.py
rename to examples/verifiers/python_verifier_example.py
diff --git a/test/benchmarks/test_gaia_benchmark.py b/test/benchmarks/test_gaia_benchmark.py
index 7fff7ec26..3c580bf57 100644
--- a/test/benchmarks/test_gaia_benchmark.py
+++ b/test/benchmarks/test_gaia_benchmark.py
@@ -18,7 +18,7 @@ from camel.benchmarks import GAIABenchmark
from camel.benchmarks.gaia import DefaultGAIARetriever
from camel.messages.base import BaseMessage
from camel.models.model_factory import ModelFactory
-from camel.runtime.docker_runtime import DockerRuntime
+from camel.runtimes.docker_runtime import DockerRuntime
from camel.toolkits.code_execution import CodeExecutionToolkit
from camel.types.enums import ModelPlatformType, ModelType, StorageType
diff --git a/test/data_collectors/test_alpaca_collector.py b/test/data_collectors/test_alpaca_collector.py
index c7ab1bdca..a6fb0a4fc 100644
--- a/test/data_collectors/test_alpaca_collector.py
+++ b/test/data_collectors/test_alpaca_collector.py
@@ -14,7 +14,7 @@
from camel.agents.chat_agent import ChatAgent
from camel.configs.openai_config import ChatGPTConfig
-from camel.data_collector import AlpacaDataCollector
+from camel.data_collectors import AlpacaDataCollector
from camel.messages.base import BaseMessage
from camel.models.model_factory import ModelFactory
from camel.types.enums import ModelPlatformType, ModelType
diff --git a/test/data_collectors/test_sharegpt_collector.py b/test/data_collectors/test_sharegpt_collector.py
index fda17560d..38b8b6dab 100644
--- a/test/data_collectors/test_sharegpt_collector.py
+++ b/test/data_collectors/test_sharegpt_collector.py
@@ -14,7 +14,7 @@
from camel.agents import ChatAgent
from camel.configs import ChatGPTConfig
-from camel.data_collector import ShareGPTDataCollector
+from camel.data_collectors import ShareGPTDataCollector
from camel.messages import BaseMessage
from camel.models import ModelFactory
from camel.toolkits import MathToolkit
diff --git a/test/runtime/test_code_execution_with_llm_guard_runtime.py b/test/runtimes/test_code_execution_with_llm_guard_runtime.py
similarity index 98%
rename from test/runtime/test_code_execution_with_llm_guard_runtime.py
rename to test/runtimes/test_code_execution_with_llm_guard_runtime.py
index 359180aa4..9f1a4428f 100644
--- a/test/runtime/test_code_execution_with_llm_guard_runtime.py
+++ b/test/runtimes/test_code_execution_with_llm_guard_runtime.py
@@ -16,7 +16,7 @@ from camel.agents import ChatAgent
from camel.configs import ChatGPTConfig
from camel.messages import BaseMessage
from camel.models import ModelFactory
-from camel.runtime import LLMGuardRuntime
+from camel.runtimes import LLMGuardRuntime
from camel.toolkits.code_execution import CodeExecutionToolkit
from camel.types import ModelPlatformType, ModelType
diff --git a/test/runtime/test_daytona_runtime.py b/test/runtimes/test_daytona_runtime.py
similarity index 99%
rename from test/runtime/test_daytona_runtime.py
rename to test/runtimes/test_daytona_runtime.py
index a3cf8001a..ab00df377 100644
--- a/test/runtime/test_daytona_runtime.py
+++ b/test/runtimes/test_daytona_runtime.py
@@ -16,7 +16,7 @@ import os
import unittest
from unittest.mock import MagicMock, patch
-from camel.runtime import DaytonaRuntime
+from camel.runtimes import DaytonaRuntime
from camel.toolkits.function_tool import FunctionTool
diff --git a/test/runtime/test_docker_runtime.py b/test/runtimes/test_docker_runtime.py
similarity index 97%
rename from test/runtime/test_docker_runtime.py
rename to test/runtimes/test_docker_runtime.py
index e0d57b5f1..614c9bba0 100644
--- a/test/runtime/test_docker_runtime.py
+++ b/test/runtimes/test_docker_runtime.py
@@ -13,7 +13,7 @@
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
import pytest
-from camel.runtime import DockerRuntime
+from camel.runtimes import DockerRuntime
from camel.toolkits import CodeExecutionToolkit, MathToolkit
diff --git a/test/runtime/test_remote_http_runtime.py b/test/runtimes/test_remote_http_runtime.py
similarity index 96%
rename from test/runtime/test_remote_http_runtime.py
rename to test/runtimes/test_remote_http_runtime.py
index e31b34d58..da58c88a6 100644
--- a/test/runtime/test_remote_http_runtime.py
+++ b/test/runtimes/test_remote_http_runtime.py
@@ -13,7 +13,7 @@
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
import pytest
-from camel.runtime import RemoteHttpRuntime
+from camel.runtimes import RemoteHttpRuntime
from camel.toolkits import MathToolkit