🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
fix: update test_func_message (#1037)
Wendong-Fane02f72477446
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.ymlindex a7fabb18d..bf5485eb6 100644--- a/.github/ISSUE_TEMPLATE/bug_report.yml+++ b/.github/ISSUE_TEMPLATE/bug_report.yml@@ -27,7 +27,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.1a+ placeholder: E.g., 0.2.2validations:required: truediff --git a/README.md b/README.mdindex a307101eb..b1d23b2e4 100644--- a/README.md+++ b/README.md@@ -119,7 +119,7 @@ conda create --name camel python=3.10conda activate camel# Clone github repo-git clone -b v0.2.1a https://github.com/camel-ai/camel.git+git clone -b v0.2.2 https://github.com/camel-ai/camel.git# Change directory into project directorycd cameldiff --git a/camel/__init__.py b/camel/__init__.pyindex 9a656ef72..6a9f73fc1 100644--- a/camel/__init__.py+++ b/camel/__init__.py@@ -12,7 +12,7 @@# limitations under the License.# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========-__version__ = '0.2.1a'+__version__ = '0.2.2'__all__ = ['__version__',diff --git a/docs/conf.py b/docs/conf.pyindex 7e04afb10..58a4f3a89 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.1a'+release = '0.2.2'html_favicon = ('https://raw.githubusercontent.com/camel-ai/camel/master/misc/favicon.png'diff --git a/docs/get_started/installation.md b/docs/get_started/installation.mdindex e2bd5e22e..d34e05ff0 100644--- a/docs/get_started/installation.md+++ b/docs/get_started/installation.md@@ -60,7 +60,7 @@ conda create --name camel python=3.10conda activate camel# Clone github repo-git clone -b v0.2.1a https://github.com/camel-ai/camel.git+git clone -b v0.2.2 https://github.com/camel-ai/camel.git# Change directory into project directorycd cameldiff --git a/pyproject.toml b/pyproject.tomlindex 07209782f..2b4533e36 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.1a"+version = "0.2.2"authors = ["CAMEL-AI.org"]description = "Communicative Agents for AI Society Study"readme = "README.md"diff --git a/test/messages/test_func_message.py b/test/messages/test_func_message.pyindex 1d0151a4c..2ae05b97b 100644--- a/test/messages/test_func_message.py+++ b/test/messages/test_func_message.py@@ -89,14 +89,16 @@ def test_function_func_message(function_func_message: FunctionCallingMessage):def test_assistant_func_message_to_openai_function_message(assistant_func_message: FunctionCallingMessage,):- with pytest.raises(- ValueError,- match=(- "Invalid request for converting into function message"- " due to missing function name or results."- ),- ):+ expected_msg_dict: Dict[str, str] = {+ "role": "function",+ "name": "add",+ "content": "{'result': {'None'}}",+ }++ assert (assistant_func_message.to_openai_function_message()+ == expected_msg_dict+ )def test_function_func_message_to_openai_assistant_message(