camel-ai 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of camel-ai might be problematic. Click here for more details.
- camel_ai-0.1.1/PKG-INFO +311 -0
- camel_ai-0.1.1/README.md +265 -0
- camel_ai-0.1.1/camel/__init__.py +30 -0
- camel_ai-0.1.1/camel/agents/__init__.py +40 -0
- camel_ai-0.1.1/camel/agents/base.py +29 -0
- camel_ai-0.1.1/camel/agents/chat_agent.py +539 -0
- camel_ai-0.1.1/camel/agents/critic_agent.py +179 -0
- camel_ai-0.1.1/camel/agents/embodied_agent.py +138 -0
- camel_ai-0.1.1/camel/agents/role_assignment_agent.py +117 -0
- camel_ai-0.1.1/camel/agents/task_agent.py +382 -0
- camel_ai-0.1.1/camel/agents/tool_agents/__init__.py +20 -0
- camel_ai-0.1.1/camel/agents/tool_agents/base.py +40 -0
- camel_ai-0.1.1/camel/agents/tool_agents/hugging_face_tool_agent.py +203 -0
- camel_ai-0.1.1/camel/configs.py +159 -0
- camel_ai-0.1.1/camel/embeddings/__init__.py +20 -0
- camel_ai-0.1.1/camel/embeddings/base.py +65 -0
- camel_ai-0.1.1/camel/embeddings/openai_embedding.py +74 -0
- camel_ai-0.1.1/camel/functions/__init__.py +27 -0
- camel_ai-0.1.1/camel/functions/base_io_functions.py +261 -0
- camel_ai-0.1.1/camel/functions/math_functions.py +61 -0
- camel_ai-0.1.1/camel/functions/openai_function.py +88 -0
- camel_ai-0.1.1/camel/functions/search_functions.py +309 -0
- camel_ai-0.1.1/camel/functions/unstructured_io_fuctions.py +616 -0
- camel_ai-0.1.1/camel/functions/weather_functions.py +136 -0
- camel_ai-0.1.1/camel/generators.py +263 -0
- camel_ai-0.1.1/camel/human.py +130 -0
- camel_ai-0.1.1/camel/memories/__init__.py +28 -0
- camel_ai-0.1.1/camel/memories/base.py +75 -0
- camel_ai-0.1.1/camel/memories/chat_history_memory.py +111 -0
- camel_ai-0.1.1/camel/memories/context_creators/__init__.py +18 -0
- camel_ai-0.1.1/camel/memories/context_creators/base.py +72 -0
- camel_ai-0.1.1/camel/memories/context_creators/score_based.py +130 -0
- camel_ai-0.1.1/camel/memories/records.py +92 -0
- camel_ai-0.1.1/camel/messages/__init__.py +38 -0
- camel_ai-0.1.1/camel/messages/base.py +223 -0
- camel_ai-0.1.1/camel/messages/func_message.py +106 -0
- camel_ai-0.1.1/camel/models/__init__.py +26 -0
- camel_ai-0.1.1/camel/models/base_model.py +110 -0
- camel_ai-0.1.1/camel/models/model_factory.py +59 -0
- camel_ai-0.1.1/camel/models/open_source_model.py +144 -0
- camel_ai-0.1.1/camel/models/openai_model.py +103 -0
- camel_ai-0.1.1/camel/models/stub_model.py +106 -0
- camel_ai-0.1.1/camel/prompts/__init__.py +38 -0
- camel_ai-0.1.1/camel/prompts/ai_society.py +121 -0
- camel_ai-0.1.1/camel/prompts/base.py +227 -0
- camel_ai-0.1.1/camel/prompts/code.py +111 -0
- camel_ai-0.1.1/camel/prompts/evaluation.py +40 -0
- camel_ai-0.1.1/camel/prompts/misalignment.py +84 -0
- camel_ai-0.1.1/camel/prompts/prompt_templates.py +117 -0
- camel_ai-0.1.1/camel/prompts/role_description_prompt_template.py +53 -0
- camel_ai-0.1.1/camel/prompts/solution_extraction.py +44 -0
- camel_ai-0.1.1/camel/prompts/task_prompt_template.py +56 -0
- camel_ai-0.1.1/camel/prompts/translation.py +42 -0
- camel_ai-0.1.1/camel/responses/__init__.py +18 -0
- camel_ai-0.1.1/camel/responses/agent_responses.py +42 -0
- camel_ai-0.1.1/camel/societies/__init__.py +20 -0
- camel_ai-0.1.1/camel/societies/babyagi_playing.py +254 -0
- camel_ai-0.1.1/camel/societies/role_playing.py +456 -0
- camel_ai-0.1.1/camel/storages/__init__.py +23 -0
- camel_ai-0.1.1/camel/storages/key_value_storages/__init__.py +23 -0
- camel_ai-0.1.1/camel/storages/key_value_storages/base.py +57 -0
- camel_ai-0.1.1/camel/storages/key_value_storages/in_memory.py +51 -0
- camel_ai-0.1.1/camel/storages/key_value_storages/json.py +97 -0
- camel_ai-0.1.1/camel/terminators/__init__.py +23 -0
- camel_ai-0.1.1/camel/terminators/base.py +44 -0
- camel_ai-0.1.1/camel/terminators/response_terminator.py +118 -0
- camel_ai-0.1.1/camel/terminators/token_limit_terminator.py +55 -0
- camel_ai-0.1.1/camel/types/__init__.py +54 -0
- camel_ai-0.1.1/camel/types/enums.py +176 -0
- camel_ai-0.1.1/camel/types/openai_types.py +39 -0
- camel_ai-0.1.1/camel/utils/__init__.py +47 -0
- camel_ai-0.1.1/camel/utils/commons.py +243 -0
- camel_ai-0.1.1/camel/utils/python_interpreter.py +435 -0
- camel_ai-0.1.1/camel/utils/token_counting.py +220 -0
- camel_ai-0.1.1/pyproject.toml +177 -0
camel_ai-0.1.1/PKG-INFO
ADDED
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: camel-ai
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: Communicative Agents for AI Society Study
|
|
5
|
+
Home-page: https://www.camel-ai.org/
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Keywords: communicative-ai,ai-societies,artificial-intelligence,deep-learning,multi-agent-systems,cooperative-ai,natural-language-processing,large-language-models
|
|
8
|
+
Author: CAMEL-AI.org
|
|
9
|
+
Requires-Python: >=3.8.1,<3.12
|
|
10
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Provides-Extra: all
|
|
16
|
+
Provides-Extra: huggingface-agent
|
|
17
|
+
Provides-Extra: test
|
|
18
|
+
Provides-Extra: tools
|
|
19
|
+
Requires-Dist: PyMuPDF (>=1.22.5,<2.0.0) ; extra == "tools" or extra == "all"
|
|
20
|
+
Requires-Dist: accelerate (>=0,<1) ; extra == "huggingface-agent" or extra == "all"
|
|
21
|
+
Requires-Dist: argilla (>=1.19.0,<2.0.0) ; extra == "tools" or extra == "all"
|
|
22
|
+
Requires-Dist: beautifulsoup4 (>=4,<5) ; extra == "tools" or extra == "all"
|
|
23
|
+
Requires-Dist: colorama (>=0,<1)
|
|
24
|
+
Requires-Dist: datasets (>=2,<3) ; extra == "huggingface-agent" or extra == "all"
|
|
25
|
+
Requires-Dist: diffusers (>=0,<1) ; extra == "huggingface-agent" or extra == "all"
|
|
26
|
+
Requires-Dist: docx2txt (>=0.8,<0.9) ; extra == "tools" or extra == "all"
|
|
27
|
+
Requires-Dist: jsonschema (>=4,<5)
|
|
28
|
+
Requires-Dist: mock (>=5,<6) ; extra == "test"
|
|
29
|
+
Requires-Dist: numpy (>=1,<2)
|
|
30
|
+
Requires-Dist: openai (>=1.2.3,<2.0.0)
|
|
31
|
+
Requires-Dist: opencv-python (>=4,<5) ; extra == "huggingface-agent" or extra == "all"
|
|
32
|
+
Requires-Dist: protobuf (>=4,<5)
|
|
33
|
+
Requires-Dist: pyowm (>=3.3.0,<4.0.0) ; extra == "tools" or extra == "all"
|
|
34
|
+
Requires-Dist: pytest (>=7,<8) ; extra == "test"
|
|
35
|
+
Requires-Dist: sentencepiece (>=0,<1) ; extra == "huggingface-agent" or extra == "all"
|
|
36
|
+
Requires-Dist: soundfile (>=0,<1) ; extra == "huggingface-agent" or extra == "all"
|
|
37
|
+
Requires-Dist: tiktoken (>=0,<1)
|
|
38
|
+
Requires-Dist: torch (>=1,<2) ; extra == "huggingface-agent" or extra == "all"
|
|
39
|
+
Requires-Dist: transformers (>=4,<5) ; extra == "huggingface-agent" or extra == "all"
|
|
40
|
+
Requires-Dist: unstructured (>=0.10.30,<0.11.0) ; extra == "tools" or extra == "all"
|
|
41
|
+
Requires-Dist: wikipedia (>=1,<2) ; extra == "tools" or extra == "all"
|
|
42
|
+
Project-URL: Documentation, https://docs.camel-ai.org
|
|
43
|
+
Project-URL: Repository, https://github.com/camel-ai/camel
|
|
44
|
+
Description-Content-Type: text/markdown
|
|
45
|
+
|
|
46
|
+
<div style="left">
|
|
47
|
+
<a href="https://colab.research.google.com/drive/1AzP33O8rnMW__7ocWJhVBXjKziJXPtim?usp=sharing" target="_blank">
|
|
48
|
+
<img alt="Open In Colab" src="https://colab.research.google.com/assets/colab-badge.svg" />
|
|
49
|
+
</a>
|
|
50
|
+
<a href="https://huggingface.co/camel-ai" target="_blank">
|
|
51
|
+
<img alt="Hugging Face" src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-CAMEL--AI-ffc107?color=ffc107&logoColor=white" />
|
|
52
|
+
</a>
|
|
53
|
+
<a href="https://join.slack.com/t/camel-kwr1314/shared_invite/zt-1vy8u9lbo-ZQmhIAyWSEfSwLCl2r2eKA" target="_blank">
|
|
54
|
+
<img alt="Slack" src="https://img.shields.io/badge/Slack-CAMEL--AI-blueviolet?logo=slack" />
|
|
55
|
+
</a>
|
|
56
|
+
<a href="https://discord.gg/CNcNpquyDc" target="_blank">
|
|
57
|
+
<img alt="Discord" src="https://img.shields.io/badge/Discord-CAMEL--AI-7289da?logo=discord&logoColor=white&color=7289da" />
|
|
58
|
+
</a>
|
|
59
|
+
<a href="https://ghli.org/camel/wechat.png" target="_blank">
|
|
60
|
+
<img alt="Discord" src="https://img.shields.io/badge/WeChat-CamelAIOrg-brightgreen?logo=wechat&logoColor=white" />
|
|
61
|
+
</a>
|
|
62
|
+
<a href="https://twitter.com/CamelAIOrg" target="_blank">
|
|
63
|
+
<img alt="Twitter Follow" src="https://img.shields.io/twitter/follow/CamelAIOrg?style=social&color=brightgreen&logo=twitter" />
|
|
64
|
+
</a>
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
# CAMEL: Communicative Agents for “Mind” Exploration of Large Scale Language Model Society
|
|
68
|
+
|
|
69
|
+
<div align="center">
|
|
70
|
+
|
|
71
|
+
<a></a>
|
|
72
|
+
<a href="https://github.com/camel-ai/camel/actions/workflows/pytest_package.yml"></a>
|
|
73
|
+
<a href="https://camel-ai.github.io/camel/">
|
|
74
|
+

|
|
75
|
+
</a>
|
|
76
|
+
<a href="https://github.com/camel-ai/camel/stargazers" target="_blank">
|
|
77
|
+
<img alt="GitHub Repo Stars" src="https://img.shields.io/github/stars/camel-ai/camel?label=stars&logo=github&color=brightgreen" />
|
|
78
|
+
</a>
|
|
79
|
+
<a href="https://github.com/camel-ai/camel/blob/master/licenses/LICENSE"></a>
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
<p align="center">
|
|
83
|
+
<a href="https://github.com/camel-ai/camel#community">Community</a> |
|
|
84
|
+
<a href="https://github.com/camel-ai/camel#installation">Installation</a> |
|
|
85
|
+
<a href="https://camel-ai.github.io/camel/">Documentation</a> |
|
|
86
|
+
<a href="https://github.com/camel-ai/camel/tree/HEAD/examples">Examples</a> |
|
|
87
|
+
<a href="https://arxiv.org/abs/2303.17760">Paper</a> |
|
|
88
|
+
<a href="https://github.com/camel-ai/camel#citation">Citation</a> |
|
|
89
|
+
<a href="https://github.com/camel-ai/camel#contributing-to-camel-">Contributing</a> |
|
|
90
|
+
<a href="https://www.camel-ai.org/">CAMEL-AI</a>
|
|
91
|
+
</p>
|
|
92
|
+
|
|
93
|
+
<p align="center">
|
|
94
|
+
<img src='./misc/logo.png' width=800>
|
|
95
|
+
</p>
|
|
96
|
+
|
|
97
|
+
## Overview
|
|
98
|
+
The rapid advancement of conversational and chat-based language models has led to remarkable progress in complex task-solving. However, their success heavily relies on human input to guide the conversation, which can be challenging and time-consuming. This paper explores the potential of building scalable techniques to facilitate autonomous cooperation among communicative agents and provide insight into their "cognitive" processes. To address the challenges of achieving autonomous cooperation, we propose a novel communicative agent framework named *role-playing*. Our approach involves using *inception prompting* to guide chat agents toward task completion while maintaining consistency with human intentions. We showcase how role-playing can be used to generate conversational data for studying the behaviors and capabilities of chat agents, providing a valuable resource for investigating conversational language models. Our contributions include introducing a novel communicative agent framework, offering a scalable approach for studying the cooperative behaviors and capabilities of multi-agent systems, and open-sourcing our library to support research on communicative agents and beyond. The GitHub repository of this project is made publicly available on: [https://github.com/camel-ai/camel](https://github.com/camel-ai/camel).
|
|
99
|
+
|
|
100
|
+
## Community
|
|
101
|
+
🐫 CAMEL is an open-source library designed for the study of autonomous and communicative agents. We believe that studying these agents on a large scale offers valuable insights into their behaviors, capabilities, and potential risks. To facilitate research in this field, we implement and support various types of agents, tasks, prompts, models, and simulated environments.
|
|
102
|
+
|
|
103
|
+
Join us ([*Slack*](https://join.slack.com/t/camel-kwr1314/shared_invite/zt-1vy8u9lbo-ZQmhIAyWSEfSwLCl2r2eKA), [*Discord*](https://discord.gg/CNcNpquyDc) or [*WeChat*](https://ghli.org/camel/wechat.png)) in pushing the boundaries of building AI Societiy.
|
|
104
|
+
|
|
105
|
+
## Try it yourself
|
|
106
|
+
We provide a [](https://colab.research.google.com/drive/1AzP33O8rnMW__7ocWJhVBXjKziJXPtim?usp=sharing) demo showcasing a conversation between two ChatGPT agents playing roles as a python programmer and a stock trader collaborating on developing a trading bot for stock market.
|
|
107
|
+
|
|
108
|
+
<p align="center">
|
|
109
|
+
<img src='./misc/framework.png' width=800>
|
|
110
|
+
</p>
|
|
111
|
+
|
|
112
|
+
## Documentation
|
|
113
|
+
|
|
114
|
+
[CAMEL package documentation pages](https://camel-ai.github.io/camel/)
|
|
115
|
+
|
|
116
|
+
## Installation
|
|
117
|
+
|
|
118
|
+
Install `CAMEL` from source with poetry (Recommended):
|
|
119
|
+
```sh
|
|
120
|
+
# Clone github repo
|
|
121
|
+
# For the latest code:
|
|
122
|
+
git clone https://github.com/camel-ai/camel.git
|
|
123
|
+
# Or for the stable code:
|
|
124
|
+
git clone -b v0.1.0 https://github.com/camel-ai/camel.git
|
|
125
|
+
|
|
126
|
+
# Change directory into project directory
|
|
127
|
+
cd camel
|
|
128
|
+
|
|
129
|
+
# Activate camel virtual environment
|
|
130
|
+
poetry shell
|
|
131
|
+
|
|
132
|
+
# Install camel from source
|
|
133
|
+
# It takes about 90 seconds to resolve dependencies
|
|
134
|
+
poetry install
|
|
135
|
+
|
|
136
|
+
# Or if you want to use "huggingface agent"
|
|
137
|
+
poetry install -E huggingface-agent # (Optional)
|
|
138
|
+
|
|
139
|
+
# do something with camel
|
|
140
|
+
|
|
141
|
+
# Exit the virtual environment
|
|
142
|
+
exit
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Install `CAMEL` from source with conda and pip:
|
|
146
|
+
```sh
|
|
147
|
+
# Create a conda virtual environment
|
|
148
|
+
conda create --name camel python=3.10
|
|
149
|
+
|
|
150
|
+
# Activate camel conda environment
|
|
151
|
+
conda activate camel
|
|
152
|
+
|
|
153
|
+
# Clone github repo
|
|
154
|
+
git clone -b v0.1.0 https://github.com/camel-ai/camel.git
|
|
155
|
+
|
|
156
|
+
# Change directory into project directory
|
|
157
|
+
cd camel
|
|
158
|
+
|
|
159
|
+
# Install camel from source
|
|
160
|
+
pip install -e .
|
|
161
|
+
|
|
162
|
+
# Or if you want to use "huggingface agent"
|
|
163
|
+
pip install -e .[huggingface-agent] # (Optional)
|
|
164
|
+
```
|
|
165
|
+
## Example
|
|
166
|
+
You can find a list of tasks for different set of assistant and user role pairs [here](https://drive.google.com/file/d/194PPaSTBR07m-PzjS-Ty6KlPLdFIPQDd/view?usp=share_link)
|
|
167
|
+
|
|
168
|
+
Run the `role_playing.py` script
|
|
169
|
+
|
|
170
|
+
First, you need to add your OpenAI API key to system environment variables. The method to do this depends on your operating system and the shell you're using.
|
|
171
|
+
|
|
172
|
+
**For Bash shell (Linux, macOS, Git Bash on Windows):**
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
# Export your OpenAI API key
|
|
176
|
+
export OPENAI_API_KEY=<insert your OpenAI API key>
|
|
177
|
+
OPENAI_API_BASE_URL=<inert your OpenAI API BASE URL> #(Should you utilize an OpenAI proxy service, kindly specify this)
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
**For Windows Command Prompt:**
|
|
181
|
+
|
|
182
|
+
```cmd
|
|
183
|
+
REM export your OpenAI API key
|
|
184
|
+
set OPENAI_API_KEY=<insert your OpenAI API key>
|
|
185
|
+
set OPENAI_API_BASE_URL=<inert your OpenAI API BASE URL> #(Should you utilize an OpenAI proxy service, kindly specify this)
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
**For Windows PowerShell:**
|
|
189
|
+
|
|
190
|
+
```powershell
|
|
191
|
+
# Export your OpenAI API key
|
|
192
|
+
$env:OPENAI_API_KEY="<insert your OpenAI API key>"
|
|
193
|
+
$env:OPENAI_API_BASE_URL="<inert your OpenAI API BASE URL>" #(Should you utilize an OpenAI proxy service, kindly specify this)
|
|
194
|
+
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
Replace `<insert your OpenAI API key>` with your actual OpenAI API key in each case. Make sure there are no spaces around the `=` sign.
|
|
198
|
+
|
|
199
|
+
After setting the OpenAI API key, you can run the script:
|
|
200
|
+
|
|
201
|
+
```bash
|
|
202
|
+
# You can change the role pair and initial prompt in role_playing.py
|
|
203
|
+
python examples/ai_society/role_playing.py
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
Please note that the environment variable is session-specific. If you open a new terminal window or tab, you will need to set the API key again in that new session.
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
## Use Open-Source Models as Backends
|
|
210
|
+
|
|
211
|
+
The basic workflow of using an open-sourced model as the backend is based on an external server running LLM inference service, e.g. during the development we chose [FastChat](https://github.com/lm-sys/FastChat) to run the service.
|
|
212
|
+
|
|
213
|
+
We do not fix the choice of server to decouple the implementation of any specific LLM inference server with CAMEL (indicating the server needs to be deployed by the user himself). But the server to be deployed must satisfy that **it supports OpenAI-compatible APIs, especially the method `openai.ChatCompletion.create`**.
|
|
214
|
+
|
|
215
|
+
Here are some instructions for enabling open-source backends, where we use the [FastChat](https://github.com/lm-sys/FastChat) and a LLaMA2-based model ([`meta-llama/Llama-2-7b-chat-hf`](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf)) in the example. Please install FastChat in advance following their installation guidance.
|
|
216
|
+
|
|
217
|
+
1. Before running CAMEL, we should firstly launch FastChat server following the guidance on https://github.com/lm-sys/FastChat/blob/main/docs/openai_api.md. The instructions summarized below should be kept running **in separate processes**:
|
|
218
|
+
|
|
219
|
+
```sh
|
|
220
|
+
# Launch the controller
|
|
221
|
+
python -m fastchat.serve.controller
|
|
222
|
+
|
|
223
|
+
# Launch the model worker(s)
|
|
224
|
+
python3 -m fastchat.serve.model_worker --model-path meta-llama/Llama-2-7b-chat-hf
|
|
225
|
+
|
|
226
|
+
# Launch the RESTful API server
|
|
227
|
+
python3 -m fastchat.serve.openai_api_server --host localhost --port 8000
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
2. After observing the controller successfully receiving the heart beat signal from the worker, the server should be ready for use at http://localhost:8000/v1.
|
|
231
|
+
|
|
232
|
+
3. Then we can try on running `role_playing_with_open_source_model.py`, where each agent in this example is initialized with specifying the `model_path` and `server_url`, similar to the example code below:
|
|
233
|
+
|
|
234
|
+
```python
|
|
235
|
+
system_message = # ...
|
|
236
|
+
|
|
237
|
+
agent_kwargs = dict(
|
|
238
|
+
model=model_type,
|
|
239
|
+
model_config=OpenSourceConfig(
|
|
240
|
+
model_path="meta-llama/Llama-2-7b-chat-hf",
|
|
241
|
+
server_url="http://localhost:8000/v1",
|
|
242
|
+
),
|
|
243
|
+
)
|
|
244
|
+
|
|
245
|
+
agent = ChatAgent(
|
|
246
|
+
system_message,
|
|
247
|
+
**agent_kwargs,
|
|
248
|
+
)
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
### Supported Models
|
|
252
|
+
|
|
253
|
+
- LLaMA2-based models
|
|
254
|
+
- example: [meta-llama/Llama-2-7b-chat-hf](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf)
|
|
255
|
+
- Vicuna-based models
|
|
256
|
+
- example: [lmsys/vicuna-7b-v1.5](https://huggingface.co/lmsys/vicuna-7b-v1.5)
|
|
257
|
+
|
|
258
|
+
## Data (Hosted on Hugging Face)
|
|
259
|
+
| Dataset | Chat format | Instruction format | Chat format (translated) |
|
|
260
|
+
| -- | -- | -- | -- |
|
|
261
|
+
| **AI Society** | [Chat format](https://huggingface.co/datasets/camel-ai/ai_society/blob/main/ai_society_chat.tar.gz) | [Instruction format](https://huggingface.co/datasets/camel-ai/ai_society/blob/main/ai_society_instructions.json) | [Chat format (translated)](https://huggingface.co/datasets/camel-ai/ai_society_translated) |
|
|
262
|
+
| **Code** | [Chat format](https://huggingface.co/datasets/camel-ai/code/blob/main/code_chat.tar.gz) | [Instruction format](https://huggingface.co/datasets/camel-ai/code/blob/main/code_instructions.json) | x |
|
|
263
|
+
| **Math** | [Chat format](https://huggingface.co/datasets/camel-ai/math) | x | x|
|
|
264
|
+
| **Physics** | [Chat format](https://huggingface.co/datasets/camel-ai/physics) | x | x |
|
|
265
|
+
| **Chemistry** | [Chat format](https://huggingface.co/datasets/camel-ai/chemistry) | x | x |
|
|
266
|
+
| **Biology** | [Chat format](https://huggingface.co/datasets/camel-ai/biology) | x | x |
|
|
267
|
+
|
|
268
|
+
## Visualizations of Instructions and Tasks
|
|
269
|
+
|
|
270
|
+
| Dataset | Instructions | Tasks |
|
|
271
|
+
| -- | -- | -- |
|
|
272
|
+
| **AI Society** | [Instructions](https://atlas.nomic.ai/map/3a559a06-87d0-4476-a879-962656242452/db961915-b254-48e8-8e5c-917f827b74c6) | [Tasks](https://atlas.nomic.ai/map/cb96f41b-a6fd-4fe4-ac40-08e101714483/ae06156c-a572-46e9-8345-ebe18586d02b) |
|
|
273
|
+
| **Code** | [Instructions](https://atlas.nomic.ai/map/902d6ccb-0bbb-4294-83a8-1c7d2dae03c8/ace2e146-e49f-41db-a1f4-25a2c4be2457) | [Tasks](https://atlas.nomic.ai/map/efc38617-9180-490a-8630-43a05b35d22d/2576addf-a133-45d5-89a9-6b067b6652dd) |
|
|
274
|
+
| **Misalignment** | [Instructions](https://atlas.nomic.ai/map/5c491035-a26e-4a05-9593-82ffb2c3ab40/2bd98896-894e-4807-9ed8-a203ccb14d5e) | [Tasks](https://atlas.nomic.ai/map/abc357dd-9c04-4913-9541-63e259d7ac1f/825139a4-af66-427c-9d0e-f36b5492ab3f) |
|
|
275
|
+
|
|
276
|
+
## Implemented Research Ideas from Other Works
|
|
277
|
+
We implemented amazing research ideas from other works for you to build, compare and customize your agents. If you use any of these modules, please kindly cite the original works:
|
|
278
|
+
- `TaskCreationAgent`, `TaskPrioritizationAgent` and `BabyAGI` from *Nakajima et al.*: [Task-Driven Autonomous Agent](https://yoheinakajima.com/task-driven-autonomous-agent-utilizing-gpt-4-pinecone-and-langchain-for-diverse-applications/). [[Example](https://github.com/camel-ai/camel/blob/master/examples/ai_society/babyagi_playing.py)]
|
|
279
|
+
|
|
280
|
+
## News
|
|
281
|
+
- Released AI Society and Code dataset (April 2, 2023)
|
|
282
|
+
- Initial release of `CAMEL` python library (March 21, 2023)
|
|
283
|
+
|
|
284
|
+
## Citation
|
|
285
|
+
```
|
|
286
|
+
@inproceedings{li2023camel,
|
|
287
|
+
title={CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Society},
|
|
288
|
+
author={Li, Guohao and Hammoud, Hasan Abed Al Kader and Itani, Hani and Khizbullin, Dmitrii and Ghanem, Bernard},
|
|
289
|
+
booktitle={Thirty-seventh Conference on Neural Information Processing Systems},
|
|
290
|
+
year={2023}
|
|
291
|
+
}
|
|
292
|
+
```
|
|
293
|
+
## Acknowledgement
|
|
294
|
+
Special thanks to [Nomic AI](https://home.nomic.ai/) for giving us extended access to their data set exploration tool (Atlas).
|
|
295
|
+
|
|
296
|
+
We would also like to thank Haya Hammoud for designing the logo of our project.
|
|
297
|
+
|
|
298
|
+
## License
|
|
299
|
+
|
|
300
|
+
The intended purpose and licensing of CAMEL is solely for research use.
|
|
301
|
+
|
|
302
|
+
The source code is licensed under Apache 2.0.
|
|
303
|
+
|
|
304
|
+
The datasets are licensed under CC BY NC 4.0, which permits only non-commercial usage. It is advised that any models trained using the dataset should not be utilized for anything other than research purposes.
|
|
305
|
+
|
|
306
|
+
## Contributing to CAMEL 🐫
|
|
307
|
+
We appreciate your interest in contributing to our open-source initiative. We provide a document of [contributing guidelines](https://github.com/camel-ai/camel/blob/master/CONTRIBUTING.md) which outlines the steps for contributing to CAMEL. Please refer to this guide to ensure smooth collaboration and successful contributions. 🤝🚀
|
|
308
|
+
|
|
309
|
+
## Contact
|
|
310
|
+
For more information please contact camel.ai.team@gmail.com.
|
|
311
|
+
|
camel_ai-0.1.1/README.md
ADDED
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
<div style="left">
|
|
2
|
+
<a href="https://colab.research.google.com/drive/1AzP33O8rnMW__7ocWJhVBXjKziJXPtim?usp=sharing" target="_blank">
|
|
3
|
+
<img alt="Open In Colab" src="https://colab.research.google.com/assets/colab-badge.svg" />
|
|
4
|
+
</a>
|
|
5
|
+
<a href="https://huggingface.co/camel-ai" target="_blank">
|
|
6
|
+
<img alt="Hugging Face" src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-CAMEL--AI-ffc107?color=ffc107&logoColor=white" />
|
|
7
|
+
</a>
|
|
8
|
+
<a href="https://join.slack.com/t/camel-kwr1314/shared_invite/zt-1vy8u9lbo-ZQmhIAyWSEfSwLCl2r2eKA" target="_blank">
|
|
9
|
+
<img alt="Slack" src="https://img.shields.io/badge/Slack-CAMEL--AI-blueviolet?logo=slack" />
|
|
10
|
+
</a>
|
|
11
|
+
<a href="https://discord.gg/CNcNpquyDc" target="_blank">
|
|
12
|
+
<img alt="Discord" src="https://img.shields.io/badge/Discord-CAMEL--AI-7289da?logo=discord&logoColor=white&color=7289da" />
|
|
13
|
+
</a>
|
|
14
|
+
<a href="https://ghli.org/camel/wechat.png" target="_blank">
|
|
15
|
+
<img alt="Discord" src="https://img.shields.io/badge/WeChat-CamelAIOrg-brightgreen?logo=wechat&logoColor=white" />
|
|
16
|
+
</a>
|
|
17
|
+
<a href="https://twitter.com/CamelAIOrg" target="_blank">
|
|
18
|
+
<img alt="Twitter Follow" src="https://img.shields.io/twitter/follow/CamelAIOrg?style=social&color=brightgreen&logo=twitter" />
|
|
19
|
+
</a>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
# CAMEL: Communicative Agents for “Mind” Exploration of Large Scale Language Model Society
|
|
23
|
+
|
|
24
|
+
<div align="center">
|
|
25
|
+
|
|
26
|
+
<a></a>
|
|
27
|
+
<a href="https://github.com/camel-ai/camel/actions/workflows/pytest_package.yml"></a>
|
|
28
|
+
<a href="https://camel-ai.github.io/camel/">
|
|
29
|
+

|
|
30
|
+
</a>
|
|
31
|
+
<a href="https://github.com/camel-ai/camel/stargazers" target="_blank">
|
|
32
|
+
<img alt="GitHub Repo Stars" src="https://img.shields.io/github/stars/camel-ai/camel?label=stars&logo=github&color=brightgreen" />
|
|
33
|
+
</a>
|
|
34
|
+
<a href="https://github.com/camel-ai/camel/blob/master/licenses/LICENSE"></a>
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<p align="center">
|
|
38
|
+
<a href="https://github.com/camel-ai/camel#community">Community</a> |
|
|
39
|
+
<a href="https://github.com/camel-ai/camel#installation">Installation</a> |
|
|
40
|
+
<a href="https://camel-ai.github.io/camel/">Documentation</a> |
|
|
41
|
+
<a href="https://github.com/camel-ai/camel/tree/HEAD/examples">Examples</a> |
|
|
42
|
+
<a href="https://arxiv.org/abs/2303.17760">Paper</a> |
|
|
43
|
+
<a href="https://github.com/camel-ai/camel#citation">Citation</a> |
|
|
44
|
+
<a href="https://github.com/camel-ai/camel#contributing-to-camel-">Contributing</a> |
|
|
45
|
+
<a href="https://www.camel-ai.org/">CAMEL-AI</a>
|
|
46
|
+
</p>
|
|
47
|
+
|
|
48
|
+
<p align="center">
|
|
49
|
+
<img src='./misc/logo.png' width=800>
|
|
50
|
+
</p>
|
|
51
|
+
|
|
52
|
+
## Overview
|
|
53
|
+
The rapid advancement of conversational and chat-based language models has led to remarkable progress in complex task-solving. However, their success heavily relies on human input to guide the conversation, which can be challenging and time-consuming. This paper explores the potential of building scalable techniques to facilitate autonomous cooperation among communicative agents and provide insight into their "cognitive" processes. To address the challenges of achieving autonomous cooperation, we propose a novel communicative agent framework named *role-playing*. Our approach involves using *inception prompting* to guide chat agents toward task completion while maintaining consistency with human intentions. We showcase how role-playing can be used to generate conversational data for studying the behaviors and capabilities of chat agents, providing a valuable resource for investigating conversational language models. Our contributions include introducing a novel communicative agent framework, offering a scalable approach for studying the cooperative behaviors and capabilities of multi-agent systems, and open-sourcing our library to support research on communicative agents and beyond. The GitHub repository of this project is made publicly available on: [https://github.com/camel-ai/camel](https://github.com/camel-ai/camel).
|
|
54
|
+
|
|
55
|
+
## Community
|
|
56
|
+
🐫 CAMEL is an open-source library designed for the study of autonomous and communicative agents. We believe that studying these agents on a large scale offers valuable insights into their behaviors, capabilities, and potential risks. To facilitate research in this field, we implement and support various types of agents, tasks, prompts, models, and simulated environments.
|
|
57
|
+
|
|
58
|
+
Join us ([*Slack*](https://join.slack.com/t/camel-kwr1314/shared_invite/zt-1vy8u9lbo-ZQmhIAyWSEfSwLCl2r2eKA), [*Discord*](https://discord.gg/CNcNpquyDc) or [*WeChat*](https://ghli.org/camel/wechat.png)) in pushing the boundaries of building AI Societiy.
|
|
59
|
+
|
|
60
|
+
## Try it yourself
|
|
61
|
+
We provide a [](https://colab.research.google.com/drive/1AzP33O8rnMW__7ocWJhVBXjKziJXPtim?usp=sharing) demo showcasing a conversation between two ChatGPT agents playing roles as a python programmer and a stock trader collaborating on developing a trading bot for stock market.
|
|
62
|
+
|
|
63
|
+
<p align="center">
|
|
64
|
+
<img src='./misc/framework.png' width=800>
|
|
65
|
+
</p>
|
|
66
|
+
|
|
67
|
+
## Documentation
|
|
68
|
+
|
|
69
|
+
[CAMEL package documentation pages](https://camel-ai.github.io/camel/)
|
|
70
|
+
|
|
71
|
+
## Installation
|
|
72
|
+
|
|
73
|
+
Install `CAMEL` from source with poetry (Recommended):
|
|
74
|
+
```sh
|
|
75
|
+
# Clone github repo
|
|
76
|
+
# For the latest code:
|
|
77
|
+
git clone https://github.com/camel-ai/camel.git
|
|
78
|
+
# Or for the stable code:
|
|
79
|
+
git clone -b v0.1.0 https://github.com/camel-ai/camel.git
|
|
80
|
+
|
|
81
|
+
# Change directory into project directory
|
|
82
|
+
cd camel
|
|
83
|
+
|
|
84
|
+
# Activate camel virtual environment
|
|
85
|
+
poetry shell
|
|
86
|
+
|
|
87
|
+
# Install camel from source
|
|
88
|
+
# It takes about 90 seconds to resolve dependencies
|
|
89
|
+
poetry install
|
|
90
|
+
|
|
91
|
+
# Or if you want to use "huggingface agent"
|
|
92
|
+
poetry install -E huggingface-agent # (Optional)
|
|
93
|
+
|
|
94
|
+
# do something with camel
|
|
95
|
+
|
|
96
|
+
# Exit the virtual environment
|
|
97
|
+
exit
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Install `CAMEL` from source with conda and pip:
|
|
101
|
+
```sh
|
|
102
|
+
# Create a conda virtual environment
|
|
103
|
+
conda create --name camel python=3.10
|
|
104
|
+
|
|
105
|
+
# Activate camel conda environment
|
|
106
|
+
conda activate camel
|
|
107
|
+
|
|
108
|
+
# Clone github repo
|
|
109
|
+
git clone -b v0.1.0 https://github.com/camel-ai/camel.git
|
|
110
|
+
|
|
111
|
+
# Change directory into project directory
|
|
112
|
+
cd camel
|
|
113
|
+
|
|
114
|
+
# Install camel from source
|
|
115
|
+
pip install -e .
|
|
116
|
+
|
|
117
|
+
# Or if you want to use "huggingface agent"
|
|
118
|
+
pip install -e .[huggingface-agent] # (Optional)
|
|
119
|
+
```
|
|
120
|
+
## Example
|
|
121
|
+
You can find a list of tasks for different set of assistant and user role pairs [here](https://drive.google.com/file/d/194PPaSTBR07m-PzjS-Ty6KlPLdFIPQDd/view?usp=share_link)
|
|
122
|
+
|
|
123
|
+
Run the `role_playing.py` script
|
|
124
|
+
|
|
125
|
+
First, you need to add your OpenAI API key to system environment variables. The method to do this depends on your operating system and the shell you're using.
|
|
126
|
+
|
|
127
|
+
**For Bash shell (Linux, macOS, Git Bash on Windows):**
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
# Export your OpenAI API key
|
|
131
|
+
export OPENAI_API_KEY=<insert your OpenAI API key>
|
|
132
|
+
OPENAI_API_BASE_URL=<inert your OpenAI API BASE URL> #(Should you utilize an OpenAI proxy service, kindly specify this)
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
**For Windows Command Prompt:**
|
|
136
|
+
|
|
137
|
+
```cmd
|
|
138
|
+
REM export your OpenAI API key
|
|
139
|
+
set OPENAI_API_KEY=<insert your OpenAI API key>
|
|
140
|
+
set OPENAI_API_BASE_URL=<inert your OpenAI API BASE URL> #(Should you utilize an OpenAI proxy service, kindly specify this)
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
**For Windows PowerShell:**
|
|
144
|
+
|
|
145
|
+
```powershell
|
|
146
|
+
# Export your OpenAI API key
|
|
147
|
+
$env:OPENAI_API_KEY="<insert your OpenAI API key>"
|
|
148
|
+
$env:OPENAI_API_BASE_URL="<inert your OpenAI API BASE URL>" #(Should you utilize an OpenAI proxy service, kindly specify this)
|
|
149
|
+
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
Replace `<insert your OpenAI API key>` with your actual OpenAI API key in each case. Make sure there are no spaces around the `=` sign.
|
|
153
|
+
|
|
154
|
+
After setting the OpenAI API key, you can run the script:
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
# You can change the role pair and initial prompt in role_playing.py
|
|
158
|
+
python examples/ai_society/role_playing.py
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
Please note that the environment variable is session-specific. If you open a new terminal window or tab, you will need to set the API key again in that new session.
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
## Use Open-Source Models as Backends
|
|
165
|
+
|
|
166
|
+
The basic workflow of using an open-sourced model as the backend is based on an external server running LLM inference service, e.g. during the development we chose [FastChat](https://github.com/lm-sys/FastChat) to run the service.
|
|
167
|
+
|
|
168
|
+
We do not fix the choice of server to decouple the implementation of any specific LLM inference server with CAMEL (indicating the server needs to be deployed by the user himself). But the server to be deployed must satisfy that **it supports OpenAI-compatible APIs, especially the method `openai.ChatCompletion.create`**.
|
|
169
|
+
|
|
170
|
+
Here are some instructions for enabling open-source backends, where we use the [FastChat](https://github.com/lm-sys/FastChat) and a LLaMA2-based model ([`meta-llama/Llama-2-7b-chat-hf`](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf)) in the example. Please install FastChat in advance following their installation guidance.
|
|
171
|
+
|
|
172
|
+
1. Before running CAMEL, we should firstly launch FastChat server following the guidance on https://github.com/lm-sys/FastChat/blob/main/docs/openai_api.md. The instructions summarized below should be kept running **in separate processes**:
|
|
173
|
+
|
|
174
|
+
```sh
|
|
175
|
+
# Launch the controller
|
|
176
|
+
python -m fastchat.serve.controller
|
|
177
|
+
|
|
178
|
+
# Launch the model worker(s)
|
|
179
|
+
python3 -m fastchat.serve.model_worker --model-path meta-llama/Llama-2-7b-chat-hf
|
|
180
|
+
|
|
181
|
+
# Launch the RESTful API server
|
|
182
|
+
python3 -m fastchat.serve.openai_api_server --host localhost --port 8000
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
2. After observing the controller successfully receiving the heart beat signal from the worker, the server should be ready for use at http://localhost:8000/v1.
|
|
186
|
+
|
|
187
|
+
3. Then we can try on running `role_playing_with_open_source_model.py`, where each agent in this example is initialized with specifying the `model_path` and `server_url`, similar to the example code below:
|
|
188
|
+
|
|
189
|
+
```python
|
|
190
|
+
system_message = # ...
|
|
191
|
+
|
|
192
|
+
agent_kwargs = dict(
|
|
193
|
+
model=model_type,
|
|
194
|
+
model_config=OpenSourceConfig(
|
|
195
|
+
model_path="meta-llama/Llama-2-7b-chat-hf",
|
|
196
|
+
server_url="http://localhost:8000/v1",
|
|
197
|
+
),
|
|
198
|
+
)
|
|
199
|
+
|
|
200
|
+
agent = ChatAgent(
|
|
201
|
+
system_message,
|
|
202
|
+
**agent_kwargs,
|
|
203
|
+
)
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
### Supported Models
|
|
207
|
+
|
|
208
|
+
- LLaMA2-based models
|
|
209
|
+
- example: [meta-llama/Llama-2-7b-chat-hf](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf)
|
|
210
|
+
- Vicuna-based models
|
|
211
|
+
- example: [lmsys/vicuna-7b-v1.5](https://huggingface.co/lmsys/vicuna-7b-v1.5)
|
|
212
|
+
|
|
213
|
+
## Data (Hosted on Hugging Face)
|
|
214
|
+
| Dataset | Chat format | Instruction format | Chat format (translated) |
|
|
215
|
+
| -- | -- | -- | -- |
|
|
216
|
+
| **AI Society** | [Chat format](https://huggingface.co/datasets/camel-ai/ai_society/blob/main/ai_society_chat.tar.gz) | [Instruction format](https://huggingface.co/datasets/camel-ai/ai_society/blob/main/ai_society_instructions.json) | [Chat format (translated)](https://huggingface.co/datasets/camel-ai/ai_society_translated) |
|
|
217
|
+
| **Code** | [Chat format](https://huggingface.co/datasets/camel-ai/code/blob/main/code_chat.tar.gz) | [Instruction format](https://huggingface.co/datasets/camel-ai/code/blob/main/code_instructions.json) | x |
|
|
218
|
+
| **Math** | [Chat format](https://huggingface.co/datasets/camel-ai/math) | x | x|
|
|
219
|
+
| **Physics** | [Chat format](https://huggingface.co/datasets/camel-ai/physics) | x | x |
|
|
220
|
+
| **Chemistry** | [Chat format](https://huggingface.co/datasets/camel-ai/chemistry) | x | x |
|
|
221
|
+
| **Biology** | [Chat format](https://huggingface.co/datasets/camel-ai/biology) | x | x |
|
|
222
|
+
|
|
223
|
+
## Visualizations of Instructions and Tasks
|
|
224
|
+
|
|
225
|
+
| Dataset | Instructions | Tasks |
|
|
226
|
+
| -- | -- | -- |
|
|
227
|
+
| **AI Society** | [Instructions](https://atlas.nomic.ai/map/3a559a06-87d0-4476-a879-962656242452/db961915-b254-48e8-8e5c-917f827b74c6) | [Tasks](https://atlas.nomic.ai/map/cb96f41b-a6fd-4fe4-ac40-08e101714483/ae06156c-a572-46e9-8345-ebe18586d02b) |
|
|
228
|
+
| **Code** | [Instructions](https://atlas.nomic.ai/map/902d6ccb-0bbb-4294-83a8-1c7d2dae03c8/ace2e146-e49f-41db-a1f4-25a2c4be2457) | [Tasks](https://atlas.nomic.ai/map/efc38617-9180-490a-8630-43a05b35d22d/2576addf-a133-45d5-89a9-6b067b6652dd) |
|
|
229
|
+
| **Misalignment** | [Instructions](https://atlas.nomic.ai/map/5c491035-a26e-4a05-9593-82ffb2c3ab40/2bd98896-894e-4807-9ed8-a203ccb14d5e) | [Tasks](https://atlas.nomic.ai/map/abc357dd-9c04-4913-9541-63e259d7ac1f/825139a4-af66-427c-9d0e-f36b5492ab3f) |
|
|
230
|
+
|
|
231
|
+
## Implemented Research Ideas from Other Works
|
|
232
|
+
We implemented amazing research ideas from other works for you to build, compare and customize your agents. If you use any of these modules, please kindly cite the original works:
|
|
233
|
+
- `TaskCreationAgent`, `TaskPrioritizationAgent` and `BabyAGI` from *Nakajima et al.*: [Task-Driven Autonomous Agent](https://yoheinakajima.com/task-driven-autonomous-agent-utilizing-gpt-4-pinecone-and-langchain-for-diverse-applications/). [[Example](https://github.com/camel-ai/camel/blob/master/examples/ai_society/babyagi_playing.py)]
|
|
234
|
+
|
|
235
|
+
## News
|
|
236
|
+
- Released AI Society and Code dataset (April 2, 2023)
|
|
237
|
+
- Initial release of `CAMEL` python library (March 21, 2023)
|
|
238
|
+
|
|
239
|
+
## Citation
|
|
240
|
+
```
|
|
241
|
+
@inproceedings{li2023camel,
|
|
242
|
+
title={CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Society},
|
|
243
|
+
author={Li, Guohao and Hammoud, Hasan Abed Al Kader and Itani, Hani and Khizbullin, Dmitrii and Ghanem, Bernard},
|
|
244
|
+
booktitle={Thirty-seventh Conference on Neural Information Processing Systems},
|
|
245
|
+
year={2023}
|
|
246
|
+
}
|
|
247
|
+
```
|
|
248
|
+
## Acknowledgement
|
|
249
|
+
Special thanks to [Nomic AI](https://home.nomic.ai/) for giving us extended access to their data set exploration tool (Atlas).
|
|
250
|
+
|
|
251
|
+
We would also like to thank Haya Hammoud for designing the logo of our project.
|
|
252
|
+
|
|
253
|
+
## License
|
|
254
|
+
|
|
255
|
+
The intended purpose and licensing of CAMEL is solely for research use.
|
|
256
|
+
|
|
257
|
+
The source code is licensed under Apache 2.0.
|
|
258
|
+
|
|
259
|
+
The datasets are licensed under CC BY NC 4.0, which permits only non-commercial usage. It is advised that any models trained using the dataset should not be utilized for anything other than research purposes.
|
|
260
|
+
|
|
261
|
+
## Contributing to CAMEL 🐫
|
|
262
|
+
We appreciate your interest in contributing to our open-source initiative. We provide a document of [contributing guidelines](https://github.com/camel-ai/camel/blob/master/CONTRIBUTING.md) which outlines the steps for contributing to CAMEL. Please refer to this guide to ensure smooth collaboration and successful contributions. 🤝🚀
|
|
263
|
+
|
|
264
|
+
## Contact
|
|
265
|
+
For more information please contact camel.ai.team@gmail.com.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
|
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the “License”);
|
|
3
|
+
# you may not use this file except in compliance with the License.
|
|
4
|
+
# You may obtain a copy of the License at
|
|
5
|
+
#
|
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
#
|
|
8
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
# distributed under the License is distributed on an “AS IS” BASIS,
|
|
10
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
# See the License for the specific language governing permissions and
|
|
12
|
+
# limitations under the License.
|
|
13
|
+
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
|
|
14
|
+
import camel.agents
|
|
15
|
+
import camel.configs
|
|
16
|
+
import camel.generators
|
|
17
|
+
import camel.messages
|
|
18
|
+
import camel.prompts
|
|
19
|
+
import camel.types
|
|
20
|
+
import camel.utils
|
|
21
|
+
import camel.functions
|
|
22
|
+
import camel.memories
|
|
23
|
+
import camel.storages
|
|
24
|
+
|
|
25
|
+
__version__ = '0.1.1'
|
|
26
|
+
|
|
27
|
+
__all__ = [
|
|
28
|
+
'__version__',
|
|
29
|
+
'camel',
|
|
30
|
+
]
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
|
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the “License”);
|
|
3
|
+
# you may not use this file except in compliance with the License.
|
|
4
|
+
# You may obtain a copy of the License at
|
|
5
|
+
#
|
|
6
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
#
|
|
8
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
# distributed under the License is distributed on an “AS IS” BASIS,
|
|
10
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
# See the License for the specific language governing permissions and
|
|
12
|
+
# limitations under the License.
|
|
13
|
+
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
|
|
14
|
+
from .base import BaseAgent
|
|
15
|
+
from .chat_agent import ChatAgent
|
|
16
|
+
from .task_agent import (
|
|
17
|
+
TaskSpecifyAgent,
|
|
18
|
+
TaskPlannerAgent,
|
|
19
|
+
TaskCreationAgent,
|
|
20
|
+
TaskPrioritizationAgent,
|
|
21
|
+
)
|
|
22
|
+
from .critic_agent import CriticAgent
|
|
23
|
+
from .tool_agents.base import BaseToolAgent
|
|
24
|
+
from .tool_agents.hugging_face_tool_agent import HuggingFaceToolAgent
|
|
25
|
+
from .embodied_agent import EmbodiedAgent
|
|
26
|
+
from .role_assignment_agent import RoleAssignmentAgent
|
|
27
|
+
|
|
28
|
+
__all__ = [
|
|
29
|
+
'BaseAgent',
|
|
30
|
+
'ChatAgent',
|
|
31
|
+
'TaskSpecifyAgent',
|
|
32
|
+
'TaskPlannerAgent',
|
|
33
|
+
'TaskCreationAgent',
|
|
34
|
+
'TaskPrioritizationAgent',
|
|
35
|
+
'CriticAgent',
|
|
36
|
+
'BaseToolAgent',
|
|
37
|
+
'HuggingFaceToolAgent',
|
|
38
|
+
'EmbodiedAgent',
|
|
39
|
+
'RoleAssignmentAgent',
|
|
40
|
+
]
|