camel-ai 0.2.76a13__py3-none-any.whl → 0.2.76a14__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.76a13'
17
+ __version__ = '0.2.76a14'
18
18
 
19
19
  __all__ = [
20
20
  '__version__',
@@ -430,7 +430,7 @@ Summary:"""
430
430
  )
431
431
 
432
432
  return (
433
- "Full context summarized, summary added as system message, "
433
+ "Full context summarized, summary added as user message, "
434
434
  "and full history removed."
435
435
  )
436
436
 
@@ -454,17 +454,18 @@ Summary:"""
454
454
  # clear the memory
455
455
  self.agent.clear_memory()
456
456
 
457
- # add summary as context
457
+ # add summary as context as a USER message
458
458
  if summary and summary.strip():
459
459
  from camel.messages import BaseMessage
460
460
  from camel.types import OpenAIBackendRole
461
461
 
462
- summary_message = BaseMessage.make_assistant_message(
463
- role_name="Assistant",
464
- content=f"[Context Summary]\n\n{summary}",
462
+ summary_message = BaseMessage.make_user_message(
463
+ role_name="User",
464
+ content=f"[Context Summary from Previous "
465
+ f"Conversation]\n\n{summary}",
465
466
  )
466
467
  self.agent.update_memory(
467
- summary_message, OpenAIBackendRole.SYSTEM
468
+ summary_message, OpenAIBackendRole.USER
468
469
  )
469
470
  return True
470
471
  return False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: camel-ai
3
- Version: 0.2.76a13
3
+ Version: 0.2.76a14
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
@@ -10,6 +10,7 @@ License-Expression: Apache-2.0
10
10
  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
+ Requires-Dist: astor>=0.8.1
13
14
  Requires-Dist: colorama<0.5,>=0.4.6
14
15
  Requires-Dist: docstring-parser<0.18,>=0.17.0
15
16
  Requires-Dist: httpx<1.0.0dev,>=0.28.0
@@ -1,4 +1,4 @@
1
- camel/__init__.py,sha256=VhpEyVTNYd6JwdWL7o_GvaCbZHyDg0eJ_rNe8j0ncyQ,902
1
+ camel/__init__.py,sha256=aYn9uXm121mibeMavBC3ct3xNgi0HMbZpplg8qKV1HM,902
2
2
  camel/generators.py,sha256=JRqj9_m1PF4qT6UtybzTQ-KBT9MJQt18OAAYvQ_fr2o,13844
3
3
  camel/human.py,sha256=Xg8x1cS5KK4bQ1SDByiHZnzsRpvRP-KZViNvmu38xo4,5475
4
4
  camel/logger.py,sha256=WgEwael_eT6D-lVAKHpKIpwXSTjvLbny5jbV1Ab8lnA,5760
@@ -336,7 +336,7 @@ camel/toolkits/bohrium_toolkit.py,sha256=453t-m0h0IGjurG6tCHUejGzfRAN2SAkhIoY8V-
336
336
  camel/toolkits/browser_toolkit.py,sha256=Ntn_LmCrhqqIBWq9HtiIKw-M0cL5ebn74Ej1GBoZiC8,44400
337
337
  camel/toolkits/browser_toolkit_commons.py,sha256=uuc1V5tN3YJmTSe6NHAVJqwsL4iYD7IiSZWxPLYW67A,22196
338
338
  camel/toolkits/code_execution.py,sha256=3LoSgKdIMlB3fMr7qFuFXt_9QXnTXS8pBfcld580N-k,6785
339
- camel/toolkits/context_summarizer_toolkit.py,sha256=PD3Mq8ZtsaLMpFkVDmOcrY8H853FdxT6FI7RBGgPl28,25687
339
+ camel/toolkits/context_summarizer_toolkit.py,sha256=0o7lpoq4jEcsuuoHWwviElXp1Ge5mpe--c-aNRu47eQ,25742
340
340
  camel/toolkits/craw4ai_toolkit.py,sha256=av8mqY68QgMSm27htnSdq0aqE6z3yWMVDSrNafQ6ORw,3298
341
341
  camel/toolkits/dappier_toolkit.py,sha256=OEHOYXX_oXhgbVtWYAy13nO9uXf9i5qEXSwY4PexNFg,8194
342
342
  camel/toolkits/data_commons_toolkit.py,sha256=aHZUSL1ACpnYGaf1rE2csVKTmXTmN8lMGRUBYhZ_YEk,14168
@@ -487,7 +487,7 @@ camel/verifiers/math_verifier.py,sha256=tA1D4S0sm8nsWISevxSN0hvSVtIUpqmJhzqfbuMo
487
487
  camel/verifiers/models.py,sha256=GdxYPr7UxNrR1577yW4kyroRcLGfd-H1GXgv8potDWU,2471
488
488
  camel/verifiers/physics_verifier.py,sha256=c1grrRddcrVN7szkxhv2QirwY9viIRSITWeWFF5HmLs,30187
489
489
  camel/verifiers/python_verifier.py,sha256=ogTz77wODfEcDN4tMVtiSkRQyoiZbHPY2fKybn59lHw,20558
490
- camel_ai-0.2.76a13.dist-info/METADATA,sha256=TbWu2lS1Q7QSGlX46uMBPCL084szWP0vL8ql_z6ClTE,55165
491
- camel_ai-0.2.76a13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
492
- camel_ai-0.2.76a13.dist-info/licenses/LICENSE,sha256=id0nB2my5kG0xXeimIu5zZrbHLS6EQvxvkKkzIHaT2k,11343
493
- camel_ai-0.2.76a13.dist-info/RECORD,,
490
+ camel_ai-0.2.76a14.dist-info/METADATA,sha256=zpu8k68gHxVctAghXlFLDIIsSJ2eI38NAQHDV4dMW34,55193
491
+ camel_ai-0.2.76a14.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
492
+ camel_ai-0.2.76a14.dist-info/licenses/LICENSE,sha256=id0nB2my5kG0xXeimIu5zZrbHLS6EQvxvkKkzIHaT2k,11343
493
+ camel_ai-0.2.76a14.dist-info/RECORD,,