Skip to content

Commit d58fd51

Browse files
authored
chore: update contribution guideline and poetry toml (#992)
1 parent e6f6796 commit d58fd51

File tree

9 files changed

+609
-564
lines changed

9 files changed

+609
-564
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🐫 **Welcome to CAMEL!** 🐫
22

3-
Thank you for your interest in contributing to the CAMEL project! 🎉 We're excited to have your support. As an open-source initiative in a rapidly evolving and open-ended field, we wholeheartedly welcome contributions of all kinds. Whether you want to introduce new features, enhance the infrastructure, improve documentation, asking issues, add more examples, implement state-of-the-art research ideas, or fix bugs, we appreciate your enthusiasm and efforts. 🙌 You are welcome to join our [slack](https://join.slack.com/t/camel-ai/shared_invite/zt-2g7xc41gy-_7rcrNNAArIP6sLQqldkqQ) for more efficient communication. 💬
3+
Thank you for your interest in contributing to the CAMEL project! 🎉 We're excited to have your support. As an open-source initiative in a rapidly evolving and open-ended field, we wholeheartedly welcome contributions of all kinds. Whether you want to introduce new features, enhance the infrastructure, improve documentation, asking issues, add more examples, implement state-of-the-art research ideas, or fix bugs, we appreciate your enthusiasm and efforts. 🙌 You are welcome to join our [discord](https://discord.gg/eNsRwtnT) for more efficient communication. 💬
44

55
## Join Our Community 🌍
66

@@ -9,13 +9,13 @@ Thank you for your interest in contributing to the CAMEL project! 🎉 We're exc
99
- Chinese speakers: [here](https://calendly.com/sisi-qu/welcome-to-camel-onboarding-meeting?month=2024-05)
1010

1111
### Developer Meeting Time & Link 💻
12-
- English speakers: Mondays at 5 PM GMT+1. Join via Zoom: [Meeting Link](https://kaust.zoom.us/j/91735108083)
12+
- English speakers: Mondays at 5 PM GMT+1. Join via Discord: [Meeting Link](https://discord.gg/aWfgSTh5?event=1288737688794435634)
1313
- Chinese Speakers: Mondays at 9 PM UTC+8. Join via Zoom: [Meeting Link](https://kaust.zoom.us/j/94271505221)
1414

1515
### Our Communication Channels 💬
16-
- **Slack:** [Join here](https://join.slack.com/t/camel-ai/shared_invite/zt-2g7xc41gy-_7rcrNNAArIP6sLQqldkqQ)
1716
- **Discord:** [Join here](https://discord.gg/CNcNpquyDc)
1817
- **WeChat:** Scan the QR code [here](https://ghli.org/camel/wechat.png)
18+
- **Slack:** [Join here](https://join.slack.com/t/camel-ai/shared_invite/zt-2g7xc41gy-_7rcrNNAArIP6sLQqldkqQ)
1919

2020
## Guidelines 📝
2121

@@ -161,10 +161,6 @@ cd camel
161161
poetry shell
162162

163163
# Install camel from source
164-
# It takes about 75s to resolve dependencies and 10s to install them, depending on your hardware and network
165-
poetry install --with dev,docs
166-
167-
# Or if you want to use all other extra packages
168164
poetry install --with dev,docs -E all # (Suggested for developers, needed to pass all tests)
169165

170166
# The following command installs a pre-commit hook into the local git repo,
@@ -185,6 +181,9 @@ These commands will install all the necessary dependencies for running the packa
185181

186182
To verify that everything is set up correctly, run `pytest .` This will ensure that all tests pass successfully. ✅
187183

184+
> [!TIP]
185+
> You need to config different API Keys as environment variables to pass all tests.
186+
188187
## Common Actions 🔄
189188

190189
### Update dependencies

camel/agents/chat_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def step(
426426
or isinstance(self.model_type, str)
427427
and "lama" in self.model_type
428428
):
429-
if self.model_backend.model_config_dict['tools']:
429+
if self.model_backend.model_config_dict.get("tools", None):
430430
tool_prompt = self._generate_tool_prompt(self.tool_schema_list)
431431

432432
tool_sys_msg = BaseMessage.make_assistant_message(

docs/cookbooks/create_your_first_agent.ipynb

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
]
2121
},
2222
{
23+
"attachments": {},
2324
"cell_type": "markdown",
2425
"metadata": {
2526
"id": "wFlfaGrjVAUy"
@@ -34,10 +35,15 @@
3435
"> Can we design an autonomous communicative agent capable of steering the conversation toward task completion with minimal human supervision?\n",
3536
"\n",
3637
"In our current implementation, we consider agents with the following key features:\n",
38+
"\n",
3739
"- **Role**: along with the goal and content specification, this sets the initial state of an agent, guiding the agent to take actions during the sequential interaction.\n",
40+
"\n",
3841
"- **Memory**: in-context memory and external memory which allows the agent to infer and learn in a more grounded approach.\n",
42+
"\n",
3943
"- **Tools**: a set of functions that our agents can utilize to interact with the external world; essentially this gives embodiments to our agents.\n",
44+
"\n",
4045
"- **Communication**: our framework allows flexible and scalable communication between agents. This is fundamental for the critical research question.\n",
46+
"\n",
4147
"- **Reasoning**: we will equip agents with different planning and reward (critic) learning abilities, allowing them to optimize task completion in a more guided approach."
4248
]
4349
},
@@ -367,22 +373,49 @@
367373
]
368374
},
369375
{
376+
"attachments": {},
370377
"cell_type": "markdown",
371378
"metadata": {
372379
"id": "OY657qftWXtI"
373380
},
374381
"source": [
375382
"### Miscs\n",
376383
"\n",
377-
"- Setting the agent to its initial state.\n",
378-
" ```python\n",
379-
" agent.reset()\n",
380-
" ```\n",
381-
"- Set the output language for the agent.\n",
382-
" ```python\n",
383-
" agent.set_output_language('french')\n",
384-
" ```\n",
385-
"- The `ChatAgent` class offers several useful initialization options, including `model_type`, `model_config`, `memory`, `message_window_size`, `token_limit`, `output_language`, `tools`, and `response_terminators`. Check [`chat_agent.py`](https://github.com/camel-ai/camel/blob/master/camel/agents/chat_agent.py) for detailed usage guidance."
384+
"- Setting the agent to its initial state."
385+
]
386+
},
387+
{
388+
"cell_type": "code",
389+
"execution_count": null,
390+
"metadata": {},
391+
"outputs": [],
392+
"source": [
393+
"agent.reset()"
394+
]
395+
},
396+
{
397+
"attachments": {},
398+
"cell_type": "markdown",
399+
"metadata": {},
400+
"source": [
401+
"- Set the output language for the agent."
402+
]
403+
},
404+
{
405+
"cell_type": "code",
406+
"execution_count": null,
407+
"metadata": {},
408+
"outputs": [],
409+
"source": [
410+
"agent.set_output_language('french')"
411+
]
412+
},
413+
{
414+
"attachments": {},
415+
"cell_type": "markdown",
416+
"metadata": {},
417+
"source": [
418+
"- The `ChatAgent` class offers several useful initialization options, including `model_type`, `model_config`, `memory`, `message_window_size`, `token_limit`, `output_language`, `tools`, and `response_terminators`. Check [chat_agent.py](https://github.com/camel-ai/camel/blob/master/camel/agents/chat_agent.py) for detailed usage guidance."
386419
]
387420
},
388421
{

docs/cookbooks/create_your_first_agents_society.ipynb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
]
2121
},
2222
{
23+
"attachments": {},
2324
"cell_type": "markdown",
2425
"metadata": {
2526
"id": "wFlfaGrjVAUy"
@@ -34,8 +35,11 @@
3435
"> -- Marvin Minsky, The Society of Mind, p. 308\n",
3536
"\n",
3637
"In this section, we will take a spite of the task-oriented `RolyPlaying()` class. We design this in an instruction-following manner. The essence is that to solve a complex task, you can enable two communicative agents collabratively working together step by step to reach solutions. The main concepts include:\n",
38+
"\n",
3739
"- **Task**: a task can be as simple as an idea, initialized by an inception prompt.\n",
40+
"\n",
3841
"- **AI User**: the agent who is expected to provide instructions.\n",
42+
"\n",
3943
"- **AI Assistant**: the agent who is expected to respond with solutions that fulfills the instructions."
4044
]
4145
},

docs/key_modules/models.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The following table lists currently supported model platforms by CAMEL.
4949
| Together AI | https://docs.together.ai/docs/chat-models | ----- |
5050
| LiteLLM | https://docs.litellm.ai/docs/providers | ----- |
5151

52-
## 3. Model calling template
52+
## 3. Model Calling Template
5353

5454
Here is the example code to use a chosen model. To utilize a different model, you can simply change three parameters the define your model to be used: `model_platform`, `model_type`, `model_config_dict` .
5555

examples/models/ollama_model_example.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
ollama_model = ModelFactory.create(
2121
model_platform=ModelPlatformType.OLLAMA,
22-
model_type="mistral",
22+
model_type="llama3.2",
2323
model_config_dict={"temperature": 0.4},
2424
)
2525

@@ -41,11 +41,17 @@
4141
===============================================================================
4242
Ollama server started on http://localhost:11434/v1 for mistral model
4343
44-
Hi there! *waves* Hi to the amazing team at CAMEL AI - Autonomous and
45-
Communicative Agents Laboratory! It's great to connect with you all. I'm
46-
excited to learn more about your work in developing autonomous and
47-
communicative agents, exploring the intersection of artificial intelligence,
48-
robotics, and human-computer interaction. Keep pushing the boundaries of
49-
what's possible!
44+
Hello CAMEL AI community!
45+
46+
It's great to connect with such a fascinating group of individuals passionate
47+
about autonomous and communicative agents. Your dedication to advancing
48+
knowledge in this field is truly commendable.
49+
50+
I'm here to help answer any questions, provide information, or engage in
51+
discussions related to AI, machine learning, and autonomous systems. Feel free
52+
to ask me anything!
53+
54+
By the way, what topics would you like to explore within the realm of
55+
autonomous and communicative agents?
5056
===============================================================================
5157
"""

examples/models/role_playing_with_sambanova.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def main(
3939
"and then add 10 more years to this age."
4040
)
4141

42-
user_model_config = SambaCloudAPIConfig(temperature=0.2, max_tokens=2200)
42+
user_model_config = SambaCloudAPIConfig(temperature=0.2, max_tokens=1800)
4343

4444
tools_list = [
4545
*MathToolkit().get_tools(),

0 commit comments

Comments
 (0)