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: v 0.2.40 (#2101)

Wendong-Fan6848d5e0c7b1
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index 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.40
validations:
required: true
diff --git a/camel/__init__.py b/camel/__init__.py
index 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.py
index 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 preserving
structure and adhering to token constraints.
diff --git a/camel/utils/chunker/uio_chunker.py b/camel/utils/chunker/uio_chunker.py
index 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 Element
from camel.loaders import UnstructuredIO
from camel.utils.chunker import BaseChunker
@@ -49,7 +50,7 @@ class UnstructuredIOChunker(BaseChunker):
self.max_characters = max_characters
self.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 preserving
structure and adhering to token constraints.
diff --git a/docs/conf.py b/docs/conf.py
index 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.md
index 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
- [![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.39](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.40](https://docs.camel-ai.org/#)
Search Ctrl+K
diff --git a/pyproject.toml b/pyproject.toml
index 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.lock
index 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" },