camel-ai 0.2.39__py3-none-any.whl → 0.2.40__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of camel-ai might be problematic. Click here for more details.

camel/__init__.py CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  from camel.logger import disable_logging, enable_logging, set_log_level
16
16
 
17
- __version__ = '0.2.39'
17
+ __version__ = '0.2.40'
18
18
 
19
19
  __all__ = [
20
20
  '__version__',
@@ -96,7 +96,7 @@ class CodeChunker(BaseChunker):
96
96
  chunks.append(self.tokenizer.decode(buffer))
97
97
  return chunks
98
98
 
99
- def chunk(self, content: List[str]) -> List[Element]:
99
+ def chunk(self, content: List[str]) -> List["Element"]:
100
100
  r"""Splits the content into smaller chunks while preserving
101
101
  structure and adhering to token constraints.
102
102
 
@@ -11,9 +11,10 @@
11
11
  # See the License for the specific language governing permissions and
12
12
  # limitations under the License.
13
13
  # ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
14
- from typing import List, Optional
14
+ from typing import TYPE_CHECKING, List, Optional
15
15
 
16
- from unstructured.documents.elements import Element
16
+ if TYPE_CHECKING:
17
+ from unstructured.documents.elements import Element
17
18
 
18
19
  from camel.loaders import UnstructuredIO
19
20
  from camel.utils.chunker import BaseChunker
@@ -49,7 +50,7 @@ class UnstructuredIOChunker(BaseChunker):
49
50
  self.max_characters = max_characters
50
51
  self.metadata_filename = metadata_filename
51
52
 
52
- def chunk(self, content: List[Element]) -> List[Element]:
53
+ def chunk(self, content: List["Element"]) -> List["Element"]:
53
54
  r"""Splits the content into smaller chunks while preserving
54
55
  structure and adhering to token constraints.
55
56
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: camel-ai
3
- Version: 0.2.39
3
+ Version: 0.2.40
4
4
  Summary: Communicative Agents for AI Society Study
5
5
  Project-URL: Homepage, https://www.camel-ai.org/
6
6
  Project-URL: Repository, https://github.com/camel-ai/camel
@@ -1,4 +1,4 @@
1
- camel/__init__.py,sha256=oUGX2SoC3HaSeqtfiojQGt-EXaHf8ysxbHcupXk5jC0,912
1
+ camel/__init__.py,sha256=97dr3fL9PmmlSnNm6qdqlyzO86xS3Z1dqIMaU4x_Hnk,912
2
2
  camel/generators.py,sha256=JRqj9_m1PF4qT6UtybzTQ-KBT9MJQt18OAAYvQ_fr2o,13844
3
3
  camel/human.py,sha256=9X09UmxI2JqQnhrFfnZ3B9EzFmVfdSWQcjLWTIXKXe0,4962
4
4
  camel/logger.py,sha256=rZVeOVYuQ9RYJ5Tqyv0usqy0g4zaVEq4qSfZ9nd2640,5755
@@ -361,14 +361,14 @@ camel/utils/response_format.py,sha256=9KrbwtOM9cA3LSjTgLiK7oKy-53_uMh1cvpyNwwJpn
361
361
  camel/utils/token_counting.py,sha256=701LBZqUenw_mmOx5QZGE1kcLOwyHiCI77sdQrGSGGo,17449
362
362
  camel/utils/chunker/__init__.py,sha256=6iN6HL6sblIjDuJTILk-9qKcHBZ97t8b6tZCWPZ0OYI,899
363
363
  camel/utils/chunker/base.py,sha256=9CuqymFCRncyAdEST-IcRonB732YAPhusznqH-RES3E,960
364
- camel/utils/chunker/code_chunker.py,sha256=0_6e5A5P3jIC5FhQBBa_51-prpLHMals67ApmjKHMKU,6821
365
- camel/utils/chunker/uio_chunker.py,sha256=BYkA2oKePhTcby6fCMz4yDlOyLJ5lO161kVCqDvjYq4,2621
364
+ camel/utils/chunker/code_chunker.py,sha256=9h4rd39H9ngbOWAjd_12xt-EzVMh0e_fZnC4my8h_Jg,6823
365
+ camel/utils/chunker/uio_chunker.py,sha256=ZvY4w50F3tE9k5ope52MEUrKv07VgjMpZ7u5CP6_OX8,2662
366
366
  camel/verifiers/__init__.py,sha256=bPIdYDVbZxY6szYuXh70Ng_A9kemhcqJDO_gj9Dn17w,961
367
367
  camel/verifiers/base.py,sha256=SQGZPP6p08q4Qmpr1vD-eb0UxBwkl1hpZSm19yV2wWo,14866
368
368
  camel/verifiers/math_verifier.py,sha256=tA1D4S0sm8nsWISevxSN0hvSVtIUpqmJhzqfbuMo0y4,6875
369
369
  camel/verifiers/models.py,sha256=GdxYPr7UxNrR1577yW4kyroRcLGfd-H1GXgv8potDWU,2471
370
370
  camel/verifiers/python_verifier.py,sha256=o1VVINq4YQqNPz8h1FiZ7v2dMBN3wlH6AsRWPqN0iGQ,18037
371
- camel_ai-0.2.39.dist-info/METADATA,sha256=5-vOQPgrL3GxubQ670YOG9DUeEQbqodU8cLK8UgDav8,42007
372
- camel_ai-0.2.39.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
373
- camel_ai-0.2.39.dist-info/licenses/LICENSE,sha256=id0nB2my5kG0xXeimIu5zZrbHLS6EQvxvkKkzIHaT2k,11343
374
- camel_ai-0.2.39.dist-info/RECORD,,
371
+ camel_ai-0.2.40.dist-info/METADATA,sha256=aM-HL5lqavR47XPzcbLuE8EIq8gWv5zEqhoSFV3TvbI,42007
372
+ camel_ai-0.2.40.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
373
+ camel_ai-0.2.40.dist-info/licenses/LICENSE,sha256=id0nB2my5kG0xXeimIu5zZrbHLS6EQvxvkKkzIHaT2k,11343
374
+ camel_ai-0.2.40.dist-info/RECORD,,