camel-ai 0.2.7__py3-none-any.whl → 0.2.9__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
@@ -12,7 +12,7 @@
12
12
  # limitations under the License.
13
13
  # =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========
14
14
 
15
- __version__ = '0.2.7'
15
+ __version__ = '0.2.9'
16
16
 
17
17
  __all__ = [
18
18
  '__version__',
@@ -426,12 +426,12 @@ class ChatAgent(BaseAgent):
426
426
  }
427
427
 
428
428
  def init_messages(self) -> None:
429
- r"""Initializes the stored messages list with the initial system
429
+ r"""Initializes the stored messages list with the current system
430
430
  message.
431
431
  """
432
- if self.orig_sys_message is not None:
432
+ if self._system_message is not None:
433
433
  system_record = MemoryRecord(
434
- message=self.orig_sys_message,
434
+ message=self._system_message,
435
435
  role_at_backend=OpenAIBackendRole.SYSTEM,
436
436
  )
437
437
  self.memory.clear()
@@ -123,7 +123,7 @@ class OpenAIModel(BaseModelBackend):
123
123
 
124
124
  self.model_config_dict["temperature"] = 1.0
125
125
  self.model_config_dict["top_p"] = 1.0
126
- self.model_config_dict["n"] = 1.0
126
+ self.model_config_dict["n"] = 1
127
127
  self.model_config_dict["presence_penalty"] = 0.0
128
128
  self.model_config_dict["frequency_penalty"] = 0.0
129
129
 
@@ -23,10 +23,10 @@ from camel.agents import (
23
23
  from camel.generators import SystemMessageGenerator
24
24
  from camel.human import Human
25
25
  from camel.messages import BaseMessage
26
- from camel.models import BaseModelBackend, ModelFactory
26
+ from camel.models import BaseModelBackend
27
27
  from camel.prompts import TextPrompt
28
28
  from camel.responses import ChatAgentResponse
29
- from camel.types import ModelPlatformType, ModelType, RoleType, TaskType
29
+ from camel.types import RoleType, TaskType
30
30
 
31
31
  logger = logging.getLogger(__name__)
32
32
  logger.setLevel(logging.WARNING)
@@ -111,14 +111,7 @@ class RolePlaying:
111
111
  self.with_task_specify = with_task_specify
112
112
  self.with_task_planner = with_task_planner
113
113
  self.with_critic_in_the_loop = with_critic_in_the_loop
114
- self.model: BaseModelBackend = (
115
- model
116
- if model is not None
117
- else ModelFactory.create(
118
- model_platform=ModelPlatformType.DEFAULT,
119
- model_type=ModelType.DEFAULT,
120
- )
121
- )
114
+ self.model = model
122
115
  self.task_type = task_type
123
116
  self.task_prompt = task_prompt
124
117
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: camel-ai
3
- Version: 0.2.7
3
+ Version: 0.2.9
4
4
  Summary: Communicative Agents for AI Society Study
5
5
  Home-page: https://www.camel-ai.org/
6
6
  License: Apache-2.0
@@ -254,7 +254,7 @@ conda create --name camel python=3.10
254
254
  conda activate camel
255
255
 
256
256
  # Clone github repo
257
- git clone -b v0.2.7 https://github.com/camel-ai/camel.git
257
+ git clone -b v0.2.9 https://github.com/camel-ai/camel.git
258
258
 
259
259
  # Change directory into project directory
260
260
  cd camel
@@ -1,7 +1,7 @@
1
- camel/__init__.py,sha256=DxXmdx1G_W-DI7IsnGGPAIj5MITIcEMLkiM4M7Miank,778
1
+ camel/__init__.py,sha256=v1Bz7UZ7y99Mll7NUH7WAKhCPRjRvlj5Ft34O384Nvs,778
2
2
  camel/agents/__init__.py,sha256=SSU1wbhZXWwQnE0rRxkpyN57kEu72KklsZNcdLkXfTs,1551
3
3
  camel/agents/base.py,sha256=X39qWSiT1WnDqaJ9k3gQrTpOQSwUKzNEVpp5AY6fDH8,1130
4
- camel/agents/chat_agent.py,sha256=V7ssTEZlH3ty7MCSJpn9B3X5FY21iGOMJFKzZUA-LVs,48210
4
+ camel/agents/chat_agent.py,sha256=33v9sKfDT8vMWvUHhWZjZQ6OJaWca9jQkNMilz4WTLU,48208
5
5
  camel/agents/critic_agent.py,sha256=To-istnO-9Eb0iabdeIDrgfvkxYYfsdX9xIZiSrc3oM,7493
6
6
  camel/agents/deductive_reasoner_agent.py,sha256=49vwglWYHgXf-VRftdMN9OFGOwqdsXyTt45PP6z-pbg,13473
7
7
  camel/agents/embodied_agent.py,sha256=3ABuiRQXBpplKbuhPY5KNLJyKc6Z8SgXgzIges3ZwVs,7542
@@ -81,7 +81,7 @@ camel/models/nemotron_model.py,sha256=ZHKffxPxHmKxyKNIEVEgpWgRjeRvDWmyQ7rHPDERQy
81
81
  camel/models/ollama_model.py,sha256=EH5B3QVxogCUR3J7S066lO0qXkRPY9vJGtPMZYCyrSg,5580
82
82
  camel/models/openai_audio_models.py,sha256=_ddOxqzFZCVZaK6h33Z0THU6HXk2XlJTxVWquZ3oOaQ,10042
83
83
  camel/models/openai_compatible_model.py,sha256=ToABSdpKaqmLsQeGlGUCwZoT2UvLIyVEYfMzxOumumY,4064
84
- camel/models/openai_model.py,sha256=3RC-8GsI0dTY3zu9JZQCdgNTQq5UFPrVCUYfxTcYeug,6089
84
+ camel/models/openai_model.py,sha256=-PApFnvP1u6xwk0POSJJITrTrwEK_A4u4MIz5NyW6y0,6087
85
85
  camel/models/qwen_model.py,sha256=GgpDbVYHL3ww7MKc4sCXZylnHkgg_2opza2wOWWutys,4997
86
86
  camel/models/reka_model.py,sha256=KZYNQFN2Wey0qe7i25yo7YIW5ciTH03fnxXZk-UaYWk,8283
87
87
  camel/models/samba_model.py,sha256=9smEGflYNpM9wIcfW3GYpGlqhAhiCYc2m22HAEF0gkM,14392
@@ -116,7 +116,7 @@ camel/retrievers/cohere_rerank_retriever.py,sha256=HvnFqXpsX9EdBOab0kFLDyxxJnknP
116
116
  camel/retrievers/vector_retriever.py,sha256=VdNbfBOgIPdGvFBjg6K5hQKn4FIBs7q5AFN5L3N6QXE,9979
117
117
  camel/societies/__init__.py,sha256=JhGwUHjht4CewzC3shKuxmgB3oS7FIxIxmiKyhNsfIs,832
118
118
  camel/societies/babyagi_playing.py,sha256=z0nKqtq4374BLN-eGNTf07OcTPmJtRO4avTDkbeaOHg,11788
119
- camel/societies/role_playing.py,sha256=ca8K3qwuu-UCETJzOOJaph8GGVnaxyRrJKc9aEqI1Og,24090
119
+ camel/societies/role_playing.py,sha256=jSneTdW0uCu0h988K3lTkH16IUi1OFn67PN9nI8mZmk,23815
120
120
  camel/societies/workforce/__init__.py,sha256=m2KbPItARjIyKiHc_Z34joWTJ-1XnIJfQqAZEeonz2U,926
121
121
  camel/societies/workforce/base.py,sha256=qPFi-yr4UB9N5p7s8Bk5k1rC-0or5GYfblTmWt68-64,1953
122
122
  camel/societies/workforce/prompts.py,sha256=0Wcu7HpiyaD_387urc2P1uY9-DN8JAdk00HSlhNWz34,6184
@@ -209,7 +209,7 @@ camel/utils/async_func.py,sha256=_N3HIrQ9QagXjHzgTd_OKHDlmi059yPw2_lf8Pb6NHQ,156
209
209
  camel/utils/commons.py,sha256=ShNkskoAG1OcBzf_Y6YsqzX7ZypWMnYUxqrhm2_CEdY,17545
210
210
  camel/utils/constants.py,sha256=XJ4XAs78LZb5-pnirTXW4tUA9YwWWCxV8xdgH3EL3rk,1416
211
211
  camel/utils/token_counting.py,sha256=6mc5PmyN5sOP02u02r7Jjxki75hjk9z1KPaIx_0wFmY,14624
212
- camel_ai-0.2.7.dist-info/LICENSE,sha256=id0nB2my5kG0xXeimIu5zZrbHLS6EQvxvkKkzIHaT2k,11343
213
- camel_ai-0.2.7.dist-info/METADATA,sha256=kfEXc_yWpahlPuzDIcTj51O8-af0CLFwOxK4uERrQC4,28482
214
- camel_ai-0.2.7.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
215
- camel_ai-0.2.7.dist-info/RECORD,,
212
+ camel_ai-0.2.9.dist-info/LICENSE,sha256=id0nB2my5kG0xXeimIu5zZrbHLS6EQvxvkKkzIHaT2k,11343
213
+ camel_ai-0.2.9.dist-info/METADATA,sha256=VfN3yJeSpua3V0pUt47MWycMz1IT4AB8Pcj06sYAs7Q,28482
214
+ camel_ai-0.2.9.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
215
+ camel_ai-0.2.9.dist-info/RECORD,,