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: new version release and test fix (#1320)

Wendong-Fana3df42a9431f
diff --git a/.env b/.env
index f62fbb6d9..f1ad1a036 100644
--- a/.env
+++ b/.env
@@ -11,70 +11,70 @@
#===========================================
# OpenAI API (https://platform.openai.com/signup)
-OPENAI_API_KEY="Fill your API key here"
+# OPENAI_API_KEY="Fill your API key here"
# Anthropic API (https://www.anthropic.com/)
-ANTHROPIC_API_KEY="Fill your API key here"
+# ANTHROPIC_API_KEY="Fill your API key here"
# Groq API (https://groq.com/)
-GROQ_API_KEY="Fill your API key here"
+# GROQ_API_KEY="Fill your API key here"
# Cohere API (https://cohere.ai/)
-COHERE_API_KEY="Fill your API key here"
+# COHERE_API_KEY="Fill your API key here"
# Hugging Face API (https://huggingface.co/join)
-HF_TOKEN="Fill your API key here"
+# HF_TOKEN="Fill your API key here"
# Azure OpenAI API (https://azure.microsoft.com/products/cognitive-services/openai-service/)
-AZURE_OPENAI_API_KEY="Fill your API key here"
-AZURE_API_VERSION="Fill your API Version here"
-AZURE_DEPLOYMENT_NAME="Fill your Deployment Name here"
-AZURE_OPENAI_BASE_URL="Fill your Base URL here"
+# AZURE_OPENAI_API_KEY="Fill your API key here"
+# AZURE_API_VERSION="Fill your API Version here"
+# AZURE_DEPLOYMENT_NAME="Fill your Deployment Name here"
+# AZURE_OPENAI_BASE_URL="Fill your Base URL here"
# Mistral API (https://mistral.ai/)
-MISTRAL_API_KEY="Fill your API key here"
+# MISTRAL_API_KEY="Fill your API key here"
# Reka API (https://www.reka.ai/)
-REKA_API_KEY="Fill your API key here"
+# REKA_API_KEY="Fill your API key here"
# Zhipu AI API (https://www.zhipu.ai/)
-ZHIPUAI_API_KEY="Fill your API key here"
-ZHIPUAI_API_BASE_URL="Fill your Base URL here"
+# ZHIPUAI_API_KEY="Fill your API key here"
+# ZHIPUAI_API_BASE_URL="Fill your Base URL here"
# Qwen API (https://help.aliyun.com/document_detail/611472.html)
-QWEN_API_KEY="Fill your API key here"
+# QWEN_API_KEY="Fill your API key here"
# LingYi API (https://platform.lingyiwanwu.com/apikeys)
-YI_API_KEY="Fill your API key here"
+# YI_API_KEY="Fill your API key here"
# NVIDIA API (https://build.nvidia.com/explore/discover)
-NVIDIA_API_KEY="Fill your API key here"
+# NVIDIA_API_KEY="Fill your API key here"
#===========================================
# Tools & Services API
#===========================================
# Google Search API (https://developers.google.com/custom-search/v1/overview)
-GOOGLE_API_KEY="Fill your API key here"
-SEARCH_ENGINE_ID="Fill your API key here"
+# GOOGLE_API_KEY="Fill your API key here"
+# SEARCH_ENGINE_ID="Fill your API key here"
# OpenWeatherMap API (https://home.openweathermap.org/users/sign_up)
-OPENWEATHERMAP_API_KEY="Fill your API key here"
+# OPENWEATHERMAP_API_KEY="Fill your API key here"
# Neo4j Database (https://neo4j.com/)
-NEO4J_URI="Fill your API key here"
-NEO4J_USERNAME="Fill your User Name here"
-NEO4J_PASSWORD="Fill your Password here"
+# NEO4J_URI="Fill your API key here"
+# NEO4J_USERNAME="Fill your User Name here"
+# NEO4J_PASSWORD="Fill your Password here"
# Firecrawl API (https://www.firecrawl.dev/)
-FIRECRAWL_API_KEY="Fill your API key here"
+# FIRECRAWL_API_KEY="Fill your API key here"
# AskNews API (https://docs.asknews.app/en/reference)
-ASKNEWS_CLIENT_ID="Fill your Client ID here"
-ASKNEWS_CLIENT_SECRET="Fill your Client Secret here"
+# ASKNEWS_CLIENT_ID="Fill your Client ID here"
+# ASKNEWS_CLIENT_SECRET="Fill your Client Secret here"
# Chunkr API (https://chunkr.ai/)
-CHUNKR_API_KEY="Fill your API key here"
+# CHUNKR_API_KEY="Fill your API key here"
# Meshy API (https://www.meshy.ai/api)
-MESHY_API_KEY="Fill your API key here"
+# MESHY_API_KEY="Fill your API key here"
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index f79067d2c..285cb071e 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -26,7 +26,7 @@ body:
attributes:
label: What version of camel are you using?
description: Run command `python3 -c 'print(__import__("camel").__version__)'` in your shell and paste the output here.
- placeholder: E.g., 0.2.11
+ placeholder: E.g., 0.2.12
validations:
required: true
diff --git a/README.md b/README.md
index dd3fc799a..6125b1855 100644
--- a/README.md
+++ b/README.md
@@ -144,7 +144,7 @@ conda create --name camel python=3.10
conda activate camel
# Clone github repo
-git clone -b v0.2.11 https://github.com/camel-ai/camel.git
+git clone -b v0.2.12 https://github.com/camel-ai/camel.git
# Change directory into project directory
cd camel
diff --git a/camel/__init__.py b/camel/__init__.py
index 26062d625..edf926e63 100644
--- a/camel/__init__.py
+++ b/camel/__init__.py
@@ -14,7 +14,7 @@
from camel.logger import disable_logging, enable_logging, set_log_level
-__version__ = '0.2.11'
+__version__ = '0.2.12'
__all__ = [
'__version__',
diff --git a/docs/conf.py b/docs/conf.py
index 7e57fdbcb..935cd3483 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -27,7 +27,7 @@ sys.path.insert(0, os.path.abspath('..'))
project = 'CAMEL'
copyright = '2024, CAMEL-AI.org'
author = 'CAMEL-AI.org'
-release = '0.2.11'
+release = '0.2.12'
html_favicon = (
'https://raw.githubusercontent.com/camel-ai/camel/master/misc/favicon.png'
diff --git a/docs/cookbooks/agents_message.ipynb b/docs/cookbooks/agents_message.ipynb
index 77ec53efc..0f3831952 100644
--- a/docs/cookbooks/agents_message.ipynb
+++ b/docs/cookbooks/agents_message.ipynb
@@ -101,7 +101,7 @@
},
"outputs": [],
"source": [
- "!pip install \"camel-ai==0.2.11\""
+ "!pip install \"camel-ai==0.2.12\""
]
},
{
diff --git a/docs/cookbooks/agents_prompting.ipynb b/docs/cookbooks/agents_prompting.ipynb
index 9c6cb26b2..be56ffb26 100644
--- a/docs/cookbooks/agents_prompting.ipynb
+++ b/docs/cookbooks/agents_prompting.ipynb
@@ -64,7 +64,7 @@
},
"outputs": [],
"source": [
- "!pip install \"camel-ai==0.2.11\""
+ "!pip install \"camel-ai==0.2.12\""
]
},
{
diff --git a/docs/cookbooks/agents_society.ipynb b/docs/cookbooks/agents_society.ipynb
index 4aa0d935a..2cd2b35db 100644
--- a/docs/cookbooks/agents_society.ipynb
+++ b/docs/cookbooks/agents_society.ipynb
@@ -192,7 +192,7 @@
},
"outputs": [],
"source": [
- "!pip install \"camel-ai==0.2.11\""
+ "!pip install \"camel-ai==0.2.12\""
]
},
{
diff --git a/docs/cookbooks/agents_tracking.ipynb b/docs/cookbooks/agents_tracking.ipynb
index 7d176c66d..373f6b557 100644
--- a/docs/cookbooks/agents_tracking.ipynb
+++ b/docs/cookbooks/agents_tracking.ipynb
@@ -64,7 +64,7 @@
},
"outputs": [],
"source": [
- "%pip install camel-ai[all]==0.2.11\n",
+ "%pip install camel-ai[all]==0.2.12\n",
"%pip install agentops==0.3.10"
]
},
diff --git a/docs/cookbooks/agents_with_memory.ipynb b/docs/cookbooks/agents_with_memory.ipynb
index 56a1c7d7b..29d35b8a2 100644
--- a/docs/cookbooks/agents_with_memory.ipynb
+++ b/docs/cookbooks/agents_with_memory.ipynb
@@ -73,7 +73,7 @@
},
"outputs": [],
"source": [
- "!pip install \"camel-ai[all]==0.2.11\""
+ "!pip install \"camel-ai[all]==0.2.12\""
]
},
{
diff --git a/docs/cookbooks/agents_with_rag.ipynb b/docs/cookbooks/agents_with_rag.ipynb
index b8b674e9b..ccc2bf56d 100644
--- a/docs/cookbooks/agents_with_rag.ipynb
+++ b/docs/cookbooks/agents_with_rag.ipynb
@@ -75,7 +75,7 @@
},
"outputs": [],
"source": [
- "!pip install \"camel-ai[all]==0.2.11\""
+ "!pip install \"camel-ai[all]==0.2.12\""
]
},
{
diff --git a/docs/cookbooks/agents_with_tools.ipynb b/docs/cookbooks/agents_with_tools.ipynb
index d22776000..3ecef7b69 100644
--- a/docs/cookbooks/agents_with_tools.ipynb
+++ b/docs/cookbooks/agents_with_tools.ipynb
@@ -77,7 +77,7 @@
},
"outputs": [],
"source": [
- "!pip install \"camel-ai[all]==0.2.11\""
+ "!pip install \"camel-ai[all]==0.2.12\""
]
},
{
diff --git a/docs/cookbooks/create_your_first_agent.ipynb b/docs/cookbooks/create_your_first_agent.ipynb
index 047a760da..75102b35b 100644
--- a/docs/cookbooks/create_your_first_agent.ipynb
+++ b/docs/cookbooks/create_your_first_agent.ipynb
@@ -83,7 +83,7 @@
{
"cell_type": "code",
"source": [
- "!pip install \"camel-ai[all]==0.2.11\""
+ "!pip install \"camel-ai[all]==0.2.12\""
],
"metadata": {
"id": "UtcC3c-KVZmU"
diff --git a/docs/cookbooks/create_your_first_agents_society.ipynb b/docs/cookbooks/create_your_first_agents_society.ipynb
index 9dd7d8ea5..aeb2dc7b9 100644
--- a/docs/cookbooks/create_your_first_agents_society.ipynb
+++ b/docs/cookbooks/create_your_first_agents_society.ipynb
@@ -77,7 +77,7 @@
{
"cell_type": "code",
"source": [
- "!pip install \"camel-ai==0.2.11\""
+ "!pip install \"camel-ai==0.2.12\""
],
"metadata": {
"id": "RiwfwyyLYYxo"
diff --git a/docs/cookbooks/critic_agents_and_tree_search.ipynb b/docs/cookbooks/critic_agents_and_tree_search.ipynb
index 1bdb9a9be..7e59a1adc 100644
--- a/docs/cookbooks/critic_agents_and_tree_search.ipynb
+++ b/docs/cookbooks/critic_agents_and_tree_search.ipynb
@@ -84,7 +84,7 @@
{
"cell_type": "code",
"source": [
- "%pip install \"camel-ai==0.2.11\""
+ "%pip install \"camel-ai==0.2.12\""
],
"metadata": {
"id": "UtcC3c-KVZmU"
diff --git a/docs/cookbooks/customer_service_Discord_bot_using_SambaNova_with_agentic_RAG.ipynb b/docs/cookbooks/customer_service_Discord_bot_using_SambaNova_with_agentic_RAG.ipynb
index 5af11f22a..e909a1c5f 100644
--- a/docs/cookbooks/customer_service_Discord_bot_using_SambaNova_with_agentic_RAG.ipynb
+++ b/docs/cookbooks/customer_service_Discord_bot_using_SambaNova_with_agentic_RAG.ipynb
@@ -50,7 +50,7 @@
},
"outputs": [],
"source": [
- "!pip install \"camel-ai[all]==0.2.11\"\n",
+ "!pip install \"camel-ai[all]==0.2.12\"\n",
"!pip install starlette\n",
"!pip install nest_asyncio"
]
diff --git a/docs/cookbooks/customer_service_Discord_bot_with_agentic_RAG.ipynb b/docs/cookbooks/customer_service_Discord_bot_with_agentic_RAG.ipynb
index 431f9b370..04efd35d3 100644
--- a/docs/cookbooks/customer_service_Discord_bot_with_agentic_RAG.ipynb
+++ b/docs/cookbooks/customer_service_Discord_bot_with_agentic_RAG.ipynb
@@ -59,7 +59,7 @@
},
"outputs": [],
"source": [
- "!pip install \"camel-ai[all]==0.2.11\"\n",
+ "!pip install \"camel-ai[all]==0.2.12\"\n",
"!pip install starlette\n",
"!pip install nest_asyncio"
]
diff --git a/docs/cookbooks/embodied_agents.ipynb b/docs/cookbooks/embodied_agents.ipynb
index d6624ebb7..b0979dc81 100644
--- a/docs/cookbooks/embodied_agents.ipynb
+++ b/docs/cookbooks/embodied_agents.ipynb
@@ -67,7 +67,7 @@
{
"cell_type": "code",
"source": [
- "%pip install \"camel-ai==0.2.11\""
+ "%pip install \"camel-ai==0.2.12\""
],
"metadata": {
"id": "UtcC3c-KVZmU"
diff --git a/docs/cookbooks/ingest_data_from_websites_with_Firecrawl.ipynb b/docs/cookbooks/ingest_data_from_websites_with_Firecrawl.ipynb
index 5ccc26b3f..95888f5bb 100644
--- a/docs/cookbooks/ingest_data_from_websites_with_Firecrawl.ipynb
+++ b/docs/cookbooks/ingest_data_from_websites_with_Firecrawl.ipynb
@@ -81,7 +81,7 @@
},
"outputs": [],
"source": [
- "pip install \"camel-ai[all]==0.2.11\""
+ "pip install \"camel-ai[all]==0.2.12\""
]
},
{
diff --git a/docs/cookbooks/knowledge_graph.ipynb b/docs/cookbooks/knowledge_graph.ipynb
index 29405e3c0..414f70f5b 100644
--- a/docs/cookbooks/knowledge_graph.ipynb
+++ b/docs/cookbooks/knowledge_graph.ipynb
@@ -73,7 +73,7 @@
},
"outputs": [],
"source": [
- "pip install \"camel-ai[all]==0.2.11\""
+ "pip install \"camel-ai[all]==0.2.12\""
]
},
{
diff --git a/docs/cookbooks/model_speed_comparison.ipynb b/docs/cookbooks/model_speed_comparison.ipynb
index 020668739..a752ec15b 100644
--- a/docs/cookbooks/model_speed_comparison.ipynb
+++ b/docs/cookbooks/model_speed_comparison.ipynb
@@ -63,7 +63,7 @@
{
"cell_type": "code",
"source": [
- "!pip install \"camel-ai==0.2.11\""
+ "!pip install \"camel-ai==0.2.12\""
],
"metadata": {
"id": "UtcC3c-KVZmU"
diff --git a/docs/cookbooks/roleplaying_scraper.ipynb b/docs/cookbooks/roleplaying_scraper.ipynb
index 125123bb5..b556a77cb 100644
--- a/docs/cookbooks/roleplaying_scraper.ipynb
+++ b/docs/cookbooks/roleplaying_scraper.ipynb
@@ -89,7 +89,7 @@
},
"outputs": [],
"source": [
- "!pip install \"camel-ai[all]==0.2.11\""
+ "!pip install \"camel-ai[all]==0.2.12\""
]
},
{
diff --git a/docs/cookbooks/task_generation.ipynb b/docs/cookbooks/task_generation.ipynb
index fe78ccf6b..7bca77bf1 100644
--- a/docs/cookbooks/task_generation.ipynb
+++ b/docs/cookbooks/task_generation.ipynb
@@ -62,7 +62,7 @@
},
"outputs": [],
"source": [
- "!pip install \"camel-ai==0.2.11\""
+ "!pip install \"camel-ai==0.2.12\""
]
},
{
diff --git a/docs/cookbooks/video_analysis.ipynb b/docs/cookbooks/video_analysis.ipynb
index 183afc9b6..d7a7e8a0a 100644
--- a/docs/cookbooks/video_analysis.ipynb
+++ b/docs/cookbooks/video_analysis.ipynb
@@ -28,7 +28,7 @@
},
"outputs": [],
"source": [
- "%pip install \"camel-ai[all]==0.2.11\""
+ "%pip install \"camel-ai[all]==0.2.12\""
]
},
{
diff --git a/docs/cookbooks/workforce_judge_committee.ipynb b/docs/cookbooks/workforce_judge_committee.ipynb
index e4dd34e02..0d3da813e 100644
--- a/docs/cookbooks/workforce_judge_committee.ipynb
+++ b/docs/cookbooks/workforce_judge_committee.ipynb
@@ -28,7 +28,7 @@
},
"outputs": [],
"source": [
- "%pip install \"camel-ai[all]==0.2.11\""
+ "%pip install \"camel-ai[all]==0.2.12\""
]
},
{
diff --git a/docs/get_started/installation.md b/docs/get_started/installation.md
index ab44d5766..1972e3891 100644
--- a/docs/get_started/installation.md
+++ b/docs/get_started/installation.md
@@ -60,7 +60,7 @@ conda create --name camel python=3.10
conda activate camel
# Clone github repo
-git clone -b v0.2.11 https://github.com/camel-ai/camel.git
+git clone -b v0.2.12 https://github.com/camel-ai/camel.git
# Change directory into project directory
cd camel
diff --git a/docs/key_modules/loaders.md b/docs/key_modules/loaders.md
index 5c5d4d07c..75131b986 100644
--- a/docs/key_modules/loaders.md
+++ b/docs/key_modules/loaders.md
@@ -340,14 +340,14 @@ response = jina_reader.read_content("https://docs.camel-ai.org/")
print(response)
```
```markdown
->>>Welcome to CAMEL’s documentation! — CAMEL 0.2.11 documentation
+>>>Welcome to CAMEL’s documentation! — CAMEL 0.2.12 documentation
===============
[Skip to main content](https://docs.camel-ai.org/#main-content)
Back to top Ctrl+K
- [![Image 1](https://raw.githubusercontent.com/camel-ai/camel/master/misc/logo_light.png) ![Image 2](https://raw.githubusercontent.com/camel-ai/camel/master/misc/logo_light.png)CAMEL 0.2.11](https://docs.camel-ai.org/#)
+ [![Image 1](https://raw.githubusercontent.com/camel-ai/camel/master/misc/logo_light.png) ![Image 2](https://raw.githubusercontent.com/camel-ai/camel/master/misc/logo_light.png)CAMEL 0.2.12](https://docs.camel-ai.org/#)
Search Ctrl+K
diff --git a/poetry.lock b/poetry.lock
index 4eeb61c9e..c6283a5ea 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -1,4 +1,4 @@
-# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand.
+# This file is automatically @generated by Poetry 1.8.4 and should not be changed by hand.
[[package]]
name = "accelerate"
@@ -3951,7 +3951,6 @@ python-versions = ">=3.7"
files = [
{file = "milvus_lite-2.4.10-py3-none-macosx_10_9_x86_64.whl", hash = "sha256:fc4246d3ed7d1910847afce0c9ba18212e93a6e9b8406048436940578dfad5cb"},
{file = "milvus_lite-2.4.10-py3-none-macosx_11_0_arm64.whl", hash = "sha256:74a8e07c5e3b057df17fbb46913388e84df1dc403a200f4e423799a58184c800"},
- {file = "milvus_lite-2.4.10-py3-none-manylinux2014_aarch64.whl", hash = "sha256:240c7386b747bad696ecb5bd1f58d491e86b9d4b92dccee3315ed7256256eddc"},
{file = "milvus_lite-2.4.10-py3-none-manylinux2014_x86_64.whl", hash = "sha256:211d2e334a043f9282bdd9755f76b9b2d93b23bffa7af240919ffce6a8dfe325"},
]
@@ -4259,13 +4258,13 @@ testing-docutils = ["pygments", "pytest (>=8,<9)", "pytest-param-files (>=0.6.0,
[[package]]
name = "narwhals"
-version = "1.17.0"
+version = "1.18.2"
description = "Extremely lightweight compatibility layer between dataframe libraries"
optional = false
python-versions = ">=3.8"
files = [
- {file = "narwhals-1.17.0-py3-none-any.whl", hash = "sha256:03772e08a6e70d6a5029b2299fa4d4acc51411cca5119afffd6bbc4c762038f4"},
- {file = "narwhals-1.17.0.tar.gz", hash = "sha256:a2607fa66f0b6ccf6f54df57ee6bc4967b68095d2968c828894a5f77ed9d3c50"},
+ {file = "narwhals-1.18.2-py3-none-any.whl", hash = "sha256:8f28812178bf67e4cbe46009e71aebbcdef78a52acd3d06a747f17189dba9d4a"},
+ {file = "narwhals-1.18.2.tar.gz", hash = "sha256:7f9c72e6811635c0344193d4ce06c9d9d9fb4af37db4b7d60a76b4c929654f35"},
]
[package.extras]
@@ -5151,31 +5150,43 @@ python-versions = ">=3.9"
files = [
{file = "pandas-2.2.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:1948ddde24197a0f7add2bdc4ca83bf2b1ef84a1bc8ccffd95eda17fd836ecb5"},
{file = "pandas-2.2.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:381175499d3802cde0eabbaf6324cce0c4f5d52ca6f8c377c29ad442f50f6348"},
+ {file = "pandas-2.2.3-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:d9c45366def9a3dd85a6454c0e7908f2b3b8e9c138f5dc38fed7ce720d8453ed"},
{file = "pandas-2.2.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:86976a1c5b25ae3f8ccae3a5306e443569ee3c3faf444dfd0f41cda24667ad57"},
+ {file = "pandas-2.2.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:b8661b0238a69d7aafe156b7fa86c44b881387509653fdf857bebc5e4008ad42"},
{file = "pandas-2.2.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:37e0aced3e8f539eccf2e099f65cdb9c8aa85109b0be6e93e2baff94264bdc6f"},
{file = "pandas-2.2.3-cp310-cp310-win_amd64.whl", hash = "sha256:56534ce0746a58afaf7942ba4863e0ef81c9c50d3f0ae93e9497d6a41a057645"},
{file = "pandas-2.2.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:66108071e1b935240e74525006034333f98bcdb87ea116de573a6a0dccb6c039"},
{file = "pandas-2.2.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:7c2875855b0ff77b2a64a0365e24455d9990730d6431b9e0ee18ad8acee13dbd"},
+ {file = "pandas-2.2.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:cd8d0c3be0515c12fed0bdbae072551c8b54b7192c7b1fda0ba56059a0179698"},
{file = "pandas-2.2.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c124333816c3a9b03fbeef3a9f230ba9a737e9e5bb4060aa2107a86cc0a497fc"},
+ {file = "pandas-2.2.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:63cc132e40a2e084cf01adf0775b15ac515ba905d7dcca47e9a251819c575ef3"},
{file = "pandas-2.2.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:29401dbfa9ad77319367d36940cd8a0b3a11aba16063e39632d98b0e931ddf32"},
{file = "pandas-2.2.3-cp311-cp311-win_amd64.whl", hash = "sha256:3fc6873a41186404dad67245896a6e440baacc92f5b716ccd1bc9ed2995ab2c5"},
{file = "pandas-2.2.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:b1d432e8d08679a40e2a6d8b2f9770a5c21793a6f9f47fdd52c5ce1948a5a8a9"},
{file = "pandas-2.2.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a5a1595fe639f5988ba6a8e5bc9649af3baf26df3998a0abe56c02609392e0a4"},
+ {file = "pandas-2.2.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:5de54125a92bb4d1c051c0659e6fcb75256bf799a732a87184e5ea503965bce3"},
{file = "pandas-2.2.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fffb8ae78d8af97f849404f21411c95062db1496aeb3e56f146f0355c9989319"},
+ {file = "pandas-2.2.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:6dfcb5ee8d4d50c06a51c2fffa6cff6272098ad6540aed1a76d15fb9318194d8"},
{file = "pandas-2.2.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:062309c1b9ea12a50e8ce661145c6aab431b1e99530d3cd60640e255778bd43a"},
{file = "pandas-2.2.3-cp312-cp312-win_amd64.whl", hash = "sha256:59ef3764d0fe818125a5097d2ae867ca3fa64df032331b7e0917cf5d7bf66b13"},
{file = "pandas-2.2.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f00d1345d84d8c86a63e476bb4955e46458b304b9575dcf71102b5c705320015"},
{file = "pandas-2.2.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:3508d914817e153ad359d7e069d752cdd736a247c322d932eb89e6bc84217f28"},
+ {file = "pandas-2.2.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:22a9d949bfc9a502d320aa04e5d02feab689d61da4e7764b62c30b991c42c5f0"},
{file = "pandas-2.2.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f3a255b2c19987fbbe62a9dfd6cff7ff2aa9ccab3fc75218fd4b7530f01efa24"},
+ {file = "pandas-2.2.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:800250ecdadb6d9c78eae4990da62743b857b470883fa27f652db8bdde7f6659"},
{file = "pandas-2.2.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6374c452ff3ec675a8f46fd9ab25c4ad0ba590b71cf0656f8b6daa5202bca3fb"},
{file = "pandas-2.2.3-cp313-cp313-win_amd64.whl", hash = "sha256:61c5ad4043f791b61dd4752191d9f07f0ae412515d59ba8f005832a532f8736d"},
{file = "pandas-2.2.3-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:3b71f27954685ee685317063bf13c7709a7ba74fc996b84fc6821c59b0f06468"},
{file = "pandas-2.2.3-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:38cf8125c40dae9d5acc10fa66af8ea6fdf760b2714ee482ca691fc66e6fcb18"},
+ {file = "pandas-2.2.3-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:ba96630bc17c875161df3818780af30e43be9b166ce51c9a18c1feae342906c2"},
{file = "pandas-2.2.3-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1db71525a1538b30142094edb9adc10be3f3e176748cd7acc2240c2f2e5aa3a4"},
+ {file = "pandas-2.2.3-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:15c0e1e02e93116177d29ff83e8b1619c93ddc9c49083f237d4312337a61165d"},
{file = "pandas-2.2.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:ad5b65698ab28ed8d7f18790a0dc58005c7629f227be9ecc1072aa74c0c1d43a"},
{file = "pandas-2.2.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:bc6b93f9b966093cb0fd62ff1a7e4c09e6d546ad7c1de191767baffc57628f39"},
{file = "pandas-2.2.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:5dbca4c1acd72e8eeef4753eeca07de9b1db4f398669d5994086f788a5d7cc30"},
+ {file = "pandas-2.2.3-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:8cd6d7cc958a3910f934ea8dbdf17b2364827bb4dafc38ce6eef6bb3d65ff09c"},
{file = "pandas-2.2.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:99df71520d25fade9db7c1076ac94eb994f4d2673ef2aa2e86ee039b6746d20c"},
+ {file = "pandas-2.2.3-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:31d0ced62d4ea3e231a9f228366919a5ea0b07440d9d4dac345376fd8e1477ea"},
{file = "pandas-2.2.3-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:7eee9e7cea6adf3e3d24e304ac6b8300646e2a5d1cd3a3c2abed9101b0846761"},
{file = "pandas-2.2.3-cp39-cp39-win_amd64.whl", hash = "sha256:4850ba03528b6dd51d6c5d273c46f183f39a9baf3f0143e566b89450965b105e"},
{file = "pandas-2.2.3.tar.gz", hash = "sha256:4f18ba62b61d7e192368b84517265a99b4d7ee8912f8708660fb4a366cc82667"},
@@ -6028,7 +6039,6 @@ description = "Pure-Python implementation of ASN.1 types and DER/BER/CER codecs
optional = true
python-versions = ">=3.8"
files = [
- {file = "pyasn1-0.6.1-py3-none-any.whl", hash = "sha256:0d632f46f2ba09143da3a8afe9e33fb6f92fa2320ab7e886e2d0f7672af84629"},
{file = "pyasn1-0.6.1.tar.gz", hash = "sha256:6f580d2bdd84365380830acf45550f2511469f673cb4a5ae3857a3170128b034"},
]
@@ -6039,7 +6049,6 @@ description = "A collection of ASN.1-based protocols modules"
optional = true
python-versions = ">=3.8"
files = [
- {file = "pyasn1_modules-0.4.1-py3-none-any.whl", hash = "sha256:49bfa96b45a292b711e986f222502c1c9a5e1f4e568fc30e2574a6c7d07838fd"},
{file = "pyasn1_modules-0.4.1.tar.gz", hash = "sha256:c28e2dbf9c06ad61c71a075c7e0f9fd0f1b0bb2d2ad4377f240d33ac2ab60a7c"},
]
@@ -10047,13 +10056,13 @@ propcache = ">=0.2.0"
[[package]]
name = "yt-dlp"
-version = "2024.12.6"
+version = "2024.12.13"
description = "A feature-rich command-line audio/video downloader"
optional = true
python-versions = ">=3.9"
files = [
- {file = "yt_dlp-2024.12.6-py3-none-any.whl", hash = "sha256:a7b8724e58fff4f3204cae4feb936dbd249ca6d22c5f25dec1b3c6f1cb7745a2"},
- {file = "yt_dlp-2024.12.6.tar.gz", hash = "sha256:743dbe081ea871be3f5ff083e2cd95da866dea773fc70ae6b109838cfbf72ac4"},
+ {file = "yt_dlp-2024.12.13-py3-none-any.whl", hash = "sha256:5a16b7511e8500cbb13ff0babc9c6deb1e049dc1c854a51738aad2529167fcdf"},
+ {file = "yt_dlp-2024.12.13.tar.gz", hash = "sha256:77e15afb9d460ecb7294a39bb5e39dc9f4e8a65f3a37ef4db58800b94d095511"},
]
[package.extras]
diff --git a/pyproject.toml b/pyproject.toml
index 72e91e25b..34f94b859 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "camel-ai"
-version = "0.2.11"
+version = "0.2.12"
authors = ["CAMEL-AI.org"]
description = "Communicative Agents for AI Society Study"
readme = "README.md"
diff --git a/test/data_collectors/test_sharegpt_collector.py b/test/data_collectors/test_sharegpt_collector.py
index 3910cfcb6..8685ebe6c 100644
--- a/test/data_collectors/test_sharegpt_collector.py
+++ b/test/data_collectors/test_sharegpt_collector.py
@@ -92,4 +92,5 @@ def test_sharegpt_llm_converter():
_ = agent.step(usr_msg)
resp = collector.llm_convert()
assert resp["system"] == "You are a helpful assistant"
- assert len(resp["conversations"]) == 4
+ assert any("323" in entry['value'] for entry in resp["conversations"])
+
diff --git a/test/loaders/test_unstructured_io.py b/test/loaders/test_unstructured_io.py
index 7f2f88367..9fd24b552 100644
--- a/test/loaders/test_unstructured_io.py
+++ b/test/loaders/test_unstructured_io.py
@@ -132,10 +132,10 @@ def test_stage_elements_for_csv(unstructured_instance: UnstructuredIO):
"philadelphia-eagles-spt-intl/index.html"
)
test_elements = unstructured_instance.parse_file_or_url(test_url)
- if test_elements:
- staged_element: Any = unstructured_instance.stage_elements(
- elements=test_elements, stage_type="stage_for_baseplate"
- )
+ staged_element: Any = unstructured_instance.stage_elements(
+ elements=test_elements, # type:ignore[arg-type]
+ stage_type="stage_for_baseplate",
+ )
assert staged_element['rows'][0] == {
'data': {
'type': 'NarrativeText',
@@ -155,12 +155,11 @@ def test_stage_elements_for_csv(unstructured_instance: UnstructuredIO):
# Test with an invalid stage option (should raise ValueError)
test_stage_type = "invalid_stageing_option"
- if test_elements:
- with pytest.raises(ValueError):
- unstructured_instance.stage_elements(
- elements=test_elements,
- stage_type=test_stage_type, # type: ignore[arg-type]
- )
+ with pytest.raises(ValueError):
+ unstructured_instance.stage_elements(
+ elements=test_elements, # type:ignore[arg-type]
+ stage_type=test_stage_type, # type:ignore[arg-type]
+ )
# Test the chunk_elements method
@@ -171,16 +170,15 @@ def test_chunk_elements(unstructured_instance: UnstructuredIO):
"philadelphia-eagles-spt-intl/index.html"
)
test_elements = unstructured_instance.parse_file_or_url(test_url)
- if test_elements:
- chunked_sections = unstructured_instance.chunk_elements(
- elements=test_elements, chunk_type="chunk_by_title"
- )
+ chunked_sections = unstructured_instance.chunk_elements(
+ elements=test_elements, # type:ignore[arg-type]
+ chunk_type="chunk_by_title", # type:ignore[arg-type]
+ )
assert len(chunked_sections) == 7 # Check the number of chunks
# Test with an invalid chunk option (should raise ValueError)
- test_chunk_type = "chunk_by_invalid_option"
- if test_elements:
- with pytest.raises(ValueError):
- unstructured_instance.chunk_elements(
- elements=test_elements, chunk_type=test_chunk_type
- )
+ with pytest.raises(ValueError):
+ unstructured_instance.chunk_elements(
+ elements=test_elements, # type:ignore[arg-type]
+ chunk_type="chunk_by_invalid_option", # type:ignore[arg-type]
+ )