camel-ai 0.2.32__py3-none-any.whl → 0.2.33__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.32'
17
+ __version__ = '0.2.33'
18
18
 
19
19
  __all__ = [
20
20
  '__version__',
camel/types/enums.py CHANGED
@@ -217,6 +217,14 @@ class ModelType(UnifiedModelType, Enum):
217
217
  def __new__(cls, value) -> "ModelType":
218
218
  return cast("ModelType", UnifiedModelType.__new__(cls, value))
219
219
 
220
+ @classmethod
221
+ def from_name(cls, name):
222
+ r"""Returns the ModelType enum value from a string."""
223
+ for model_type in cls:
224
+ if model_type.value == name:
225
+ return model_type
226
+ raise ValueError(f"Unknown ModelType name: {name}")
227
+
220
228
  @property
221
229
  def value_for_tiktoken(self) -> str:
222
230
  if self.is_openai:
@@ -895,6 +903,14 @@ class ModelPlatformType(Enum):
895
903
  AIML = "aiml"
896
904
  VOLCANO = "volcano"
897
905
 
906
+ @classmethod
907
+ def from_name(cls, name):
908
+ r"""Returns the ModelPlatformType enum value from a string."""
909
+ for model_platfrom_type in cls:
910
+ if model_platfrom_type.value == name:
911
+ return model_platfrom_type
912
+ raise ValueError(f"Unknown ModelPlatformType name: {name}")
913
+
898
914
  @property
899
915
  def is_openai(self) -> bool:
900
916
  r"""Returns whether this platform is openai."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: camel-ai
3
- Version: 0.2.32
3
+ Version: 0.2.33
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
@@ -11,14 +11,11 @@ License-File: LICENSE
11
11
  Keywords: ai-societies,artificial-intelligence,communicative-ai,cooperative-ai,deep-learning,large-language-models,multi-agent-systems,natural-language-processing
12
12
  Requires-Python: <3.13,>=3.10
13
13
  Requires-Dist: colorama<0.5,>=0.4.6
14
- Requires-Dist: curl-cffi==0.6.2
15
14
  Requires-Dist: docstring-parser<0.16,>=0.15
16
- Requires-Dist: eval-type-backport==0.2.0
17
15
  Requires-Dist: httpx<1.0.0dev,>=0.28.0
18
16
  Requires-Dist: jsonschema<5,>=4
19
17
  Requires-Dist: numpy~=1.26
20
18
  Requires-Dist: openai<2,>=1.59.7
21
- Requires-Dist: protobuf<6,>=5
22
19
  Requires-Dist: psutil<6,>=5.9.8
23
20
  Requires-Dist: pydantic<2.10,>=1.9
24
21
  Requires-Dist: pyyaml<7,>=6.0.2
@@ -1,4 +1,4 @@
1
- camel/__init__.py,sha256=27oSYH_OvsE3N753lXzFHLFPEevpllynG_Jyc0bzM1Q,912
1
+ camel/__init__.py,sha256=Q_RC3OPH8ujkn_GqJ7EW_kZRJ9RUjf_TsGpjyRxBvy8,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
@@ -329,7 +329,7 @@ camel/toolkits/open_api_specs/web_scraper/openapi.yaml,sha256=u_WalQ01e8W1D27VnZ
329
329
  camel/toolkits/open_api_specs/web_scraper/paths/__init__.py,sha256=OKCZrQCDwaWtXIN_2rA9FSqEvgpQRieRoHh7Ek6N16A,702
330
330
  camel/toolkits/open_api_specs/web_scraper/paths/scraper.py,sha256=aWy1_ppV4NVVEZfnbN3tu9XA9yAPAC9bRStJ5JuXMRU,1117
331
331
  camel/types/__init__.py,sha256=VLWhAt857IFct3XepY5BNOIhyhDhfmODTezr9jhO_TI,2251
332
- camel/types/enums.py,sha256=zIgu5av92E1PPoDbU0ezvCNmp-aOuOBn4IFWhrG_Ymg,34448
332
+ camel/types/enums.py,sha256=ZZjClKeJB-ggpAmyyus713mks1C6aSxgx9hLwbULQ_8,35045
333
333
  camel/types/openai_types.py,sha256=8ZFzLe-zGmKNPfuVZFzxlxAX98lGf18gtrPhOgMmzus,2104
334
334
  camel/types/unified_model_type.py,sha256=GP5GYtA3RfvLsqnk1c4UcOaRKMFhjDgZrLr0ln6JFw8,4253
335
335
  camel/types/agents/__init__.py,sha256=cbvVkogPoZgcwZrgxLH6EtpGXk0kavF79nOic0Dc1vg,786
@@ -345,7 +345,7 @@ camel/verifiers/__init__.py,sha256=p6UEyvaOlwUQaFACGB4C07fL1xSnpTouElt19YRuneQ,9
345
345
  camel/verifiers/base.py,sha256=efWZV9g58IHzJ24U4zr109y34CaAi8tV9WZPMCzP3YI,12017
346
346
  camel/verifiers/models.py,sha256=hC6m_YxEX-mqi_tkCNZHZWLBWf04ZTyv5vfKR-BEyU4,2818
347
347
  camel/verifiers/python_verifier.py,sha256=bj-UGxeJTZzxVVa3a8IEQ1lNOpSaaW3JdGnUEoPeQD0,7519
348
- camel_ai-0.2.32.dist-info/METADATA,sha256=Lv8h4Xh2R_k0yH-vfPzn-mdblmH1Uo8_shllxWvjx-A,38046
349
- camel_ai-0.2.32.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
350
- camel_ai-0.2.32.dist-info/licenses/LICENSE,sha256=id0nB2my5kG0xXeimIu5zZrbHLS6EQvxvkKkzIHaT2k,11343
351
- camel_ai-0.2.32.dist-info/RECORD,,
348
+ camel_ai-0.2.33.dist-info/METADATA,sha256=uotZV26ym_vANuecQgdJuw59ohFnOcdToDElDaQ9wpk,37943
349
+ camel_ai-0.2.33.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
350
+ camel_ai-0.2.33.dist-info/licenses/LICENSE,sha256=id0nB2my5kG0xXeimIu5zZrbHLS6EQvxvkKkzIHaT2k,11343
351
+ camel_ai-0.2.33.dist-info/RECORD,,