🐫 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
release: v 0.2.40 (#2101)
Wendong-Fan6848d5e0c7b1
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.ymlindex bc4b71638..547e53089 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.39+ placeholder: E.g., 0.2.40validations:required: truediff --git a/camel/__init__.py b/camel/__init__.pyindex 49175e8ed..bda060103 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.39'+__version__ = '0.2.40'__all__ = ['__version__',diff --git a/camel/utils/chunker/code_chunker.py b/camel/utils/chunker/code_chunker.pyindex bb13b16da..c83bd8d7e 100644--- a/camel/utils/chunker/code_chunker.py+++ b/camel/utils/chunker/code_chunker.py@@ -96,7 +96,7 @@ class CodeChunker(BaseChunker):chunks.append(self.tokenizer.decode(buffer))return chunks- def chunk(self, content: List[str]) -> List[Element]:+ def chunk(self, content: List[str]) -> List["Element"]:r"""Splits the content into smaller chunks while preservingstructure and adhering to token constraints.diff --git a/camel/utils/chunker/uio_chunker.py b/camel/utils/chunker/uio_chunker.pyindex 89c4a594e..0de559983 100644--- a/camel/utils/chunker/uio_chunker.py+++ b/camel/utils/chunker/uio_chunker.py@@ -11,9 +11,10 @@# See the License for the specific language governing permissions and# limitations under the License.# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========-from typing import List, Optional+from typing import TYPE_CHECKING, List, Optional-from unstructured.documents.elements import Element+if TYPE_CHECKING:+ from unstructured.documents.elements import Elementfrom camel.loaders import UnstructuredIOfrom camel.utils.chunker import BaseChunker@@ -49,7 +50,7 @@ class UnstructuredIOChunker(BaseChunker):self.max_characters = max_charactersself.metadata_filename = metadata_filename- def chunk(self, content: List[Element]) -> List[Element]:+ def chunk(self, content: List["Element"]) -> List["Element"]:r"""Splits the content into smaller chunks while preservingstructure and adhering to token constraints.diff --git a/docs/conf.py b/docs/conf.pyindex 524d67e15..8a84770e8 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.39'+release = '0.2.40'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.mdindex 0bdca1bea..086eafbb3 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.39 documentation+>>>Welcome to CAMEL’s documentation! — CAMEL 0.2.40 documentation===============[Skip to main content](https://docs.camel-ai.org/#main-content)Back to top Ctrl+K- [ CAMEL 0.2.39](https://docs.camel-ai.org/#)+ [ CAMEL 0.2.40](https://docs.camel-ai.org/#)Search Ctrl+Kdiff --git a/pyproject.toml b/pyproject.tomlindex b814eb71e..46a8f0294 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "hatchling.build"[project]name = "camel-ai"-version = "0.2.39"+version = "0.2.40"description = "Communicative Agents for AI Society Study"authors = [{ name = "CAMEL-AI.org" }]requires-python = ">=3.10,<3.13"diff --git a/uv.lock b/uv.lockindex 75f6635f6..1d8d1dab0 100644--- a/uv.lock+++ b/uv.lock@@ -543,7 +543,7 @@ wheels = [[[package]]name = "camel-ai"-version = "0.2.39"+version = "0.2.40"source = { editable = "." }dependencies = [{ name = "colorama" },