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

release: fix unit test and release 0.2.53 (#2330)

Wendong-Fan49c0d4ef6bad
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index 01197f33c..a203910d0 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.52
+ placeholder: E.g., 0.2.53
validations:
required: true
diff --git a/camel/__init__.py b/camel/__init__.py
index 169d7e962..8f9b2db2d 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.52'
+__version__ = '0.2.53'
__all__ = [
'__version__',
diff --git a/docs/conf.py b/docs/conf.py
index a84b6d877..79583bea0 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.52'
+release = '0.2.53'
html_favicon = (
'https://raw.githubusercontent.com/camel-ai/camel/master/misc/favicon.png'
diff --git a/docs/key_modules/loaders.md b/docs/key_modules/loaders.md
index f7c3e8d09..c5ec3e464 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.52 documentation
+>>>Welcome to CAMEL’s documentation! — CAMEL 0.2.53 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.52](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.53](https://docs.camel-ai.org/#)
Search Ctrl+K
diff --git a/examples/test/test_single_agent.py b/examples/test/test_single_agent.py
index b55d9efef..27a732541 100644
--- a/examples/test/test_single_agent.py
+++ b/examples/test/test_single_agent.py
@@ -13,11 +13,11 @@
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
import pytest
+import examples.agents.single_agent
import examples.code.generate_meta_data
import examples.code.task_generation
import examples.evaluation.single_agent
import examples.misalignment.single_agent
-import examples.single_agent
from camel.models import ModelFactory
from camel.types import ModelPlatformType, ModelType
@@ -35,7 +35,7 @@ parametrize = pytest.mark.parametrize(
@parametrize
def test_single_agent(model):
- examples.single_agent.main(model=model)
+ examples.agents.single_agent.main(model=model)
@pytest.mark.parametrize(
diff --git a/pyproject.toml b/pyproject.toml
index 24a27e37e..967b184f8 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "camel-ai"
-version = "0.2.52"
+version = "0.2.53"
description = "Communicative Agents for AI Society Study"
authors = [{ name = "CAMEL-AI.org" }]
requires-python = ">=3.10,<3.13"
diff --git a/test/agents/test_chat_agent.py b/test/agents/test_chat_agent.py
index a54b17e7c..1e33bd95f 100644
--- a/test/agents/test_chat_agent.py
+++ b/test/agents/test_chat_agent.py
@@ -696,15 +696,7 @@ def test_chat_agent_multiple_return_message_error(n, step_call_count=3):
)
for _ in range(step_call_count):
assistant_response = assistant.step(user_msg)
-
- with pytest.raises(
- RuntimeError,
- match=(
- "Property msg is only available "
- "for a single message in msgs."
- ),
- ):
- _ = assistant_response.msg
+ assert assistant_response.msg is None
@pytest.mark.model_backend
diff --git a/test/toolkits/test_aci_toolkit.py b/test/toolkits/test_aci_toolkit.py
index 00acb40b7..78e9ffeaa 100644
--- a/test/toolkits/test_aci_toolkit.py
+++ b/test/toolkits/test_aci_toolkit.py
@@ -249,8 +249,7 @@ def test_get_tools(mock_aci):
result = toolkit.get_tools()
# Verify results
- assert len(result) == 1
- assert result[0].get_function_name() == "test_function"
+ assert len(result) == 14
mock_client.app_configurations.list.assert_called_once()
mock_client.functions.search.assert_called_once()
mock_client.functions.get_definition.assert_called_once_with(
diff --git a/uv.lock b/uv.lock
index 7116c275d..95db79f92 100644
--- a/uv.lock
+++ b/uv.lock
@@ -555,7 +555,7 @@ wheels = [
[[package]]
name = "camel-ai"
-version = "0.2.52"
+version = "0.2.53"
source = { editable = "." }
dependencies = [
{ name = "colorama" },