camel-ai 0.2.74a4__py3-none-any.whl → 0.2.74a5__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.74a4'
17
+ __version__ = '0.2.74a5'
18
18
 
19
19
  __all__ = [
20
20
  '__version__',
@@ -145,7 +145,10 @@ class AnthropicModel(OpenAICompatibleModel):
145
145
  tokenization style.
146
146
  """
147
147
  if not self._token_counter:
148
- self._token_counter = AnthropicTokenCounter(self.model_type)
148
+ # Pass the API key to the token counter
149
+ self._token_counter = AnthropicTokenCounter(
150
+ self.model_type, api_key=self._api_key
151
+ )
149
152
  return self._token_counter
150
153
 
151
154
  def check_model_config(self):
@@ -138,7 +138,7 @@ class NoteTakingToolkit(BaseToolkit):
138
138
  self.registry.append(note_name)
139
139
  self._save_registry()
140
140
 
141
- def create_note(self, note_name: str, content: str = "") -> str:
141
+ def create_note(self, note_name: str, content: str) -> str:
142
142
  r"""Creates a new note with a unique name.
143
143
 
144
144
  This function will create a new file for your note.
@@ -149,12 +149,11 @@ class NoteTakingToolkit(BaseToolkit):
149
149
  Args:
150
150
  note_name (str): The name for your new note (without the .md
151
151
  extension). This name must be unique.
152
- content (str, optional): The initial content to write in the note.
153
- If not provided, an empty note will be created. Defaults to "".
152
+ content (str): The initial content to write in the note.
154
153
 
155
154
  Returns:
156
155
  str: A message confirming the creation of the note or an error if
157
- the note name is not valid or already exists.
156
+ the note name is not valid or already exists.
158
157
  """
159
158
  try:
160
159
  note_path = self.working_directory / f"{note_name}.md"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: camel-ai
3
- Version: 0.2.74a4
3
+ Version: 0.2.74a5
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=KQZvvReOBo0DnT3uzpiQA14i1qn0HxojarhIqh5n3qw,901
1
+ camel/__init__.py,sha256=2aR45K2ZUBgUESjOowZG7UOImQt7DCtRKqyEU2xYaEI,901
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
@@ -175,7 +175,7 @@ camel/messages/conversion/sharegpt/hermes/hermes_function_formatter.py,sha256=-9
175
175
  camel/models/__init__.py,sha256=leNjmPCEeO8jZAvY8op1XeFPMuSnF349buZRGCE3aBU,3385
176
176
  camel/models/_utils.py,sha256=hob1ehnS5xZitMCdYToHVgaTB55JnaP4_DSWnTEfVsg,2045
177
177
  camel/models/aiml_model.py,sha256=tQeJcS0RlRwMK-sapFVUSIr-r5cJyCt0UNphzD8O2oI,4070
178
- camel/models/anthropic_model.py,sha256=m5J1-RabKyYf-2ejA7A8r4qbRLpS9oRtHWapzHs0BnM,8878
178
+ camel/models/anthropic_model.py,sha256=cJaKsqFdFrKda0E4J-3OZpRdm6TF3Mi60nKFVjdhKog,8983
179
179
  camel/models/aws_bedrock_model.py,sha256=bcQBiHVdVuJXyPEkSdymQlGx2zHIVj5d4ouFuF8CSY0,4670
180
180
  camel/models/azure_openai_model.py,sha256=-hnzGlV8NJAzR9wVfhe-YDazbGU43ECtw6_uFICKnPU,18393
181
181
  camel/models/base_audio_model.py,sha256=_VUWh1L3rh8mldNvM5R6jBOKtvmTeBKJyRxAdPJmPlY,3324
@@ -354,7 +354,7 @@ camel/toolkits/message_agent_toolkit.py,sha256=yWvAaxoxAvDEtD7NH7IkkHIyfWIYK47WZ
354
354
  camel/toolkits/message_integration.py,sha256=-dcf91DJzj8asXP2cc7mMy1BH2xzifhH-MMGr_nvJGw,28730
355
355
  camel/toolkits/mineru_toolkit.py,sha256=vRX9LholLNkpbJ6axfEN4pTG85aWb0PDmlVy3rAAXhg,6868
356
356
  camel/toolkits/networkx_toolkit.py,sha256=C7pUCZTzzGkFyqdkrmhRKpAHmHWfLKeuzYHC_BHPtbk,8826
357
- camel/toolkits/note_taking_toolkit.py,sha256=cp7uoSBMjiGy331Tdk2Bl6yqKSMGwws7rQJkq8tfTQs,10687
357
+ camel/toolkits/note_taking_toolkit.py,sha256=FWnkKdPyTENzHDPSFKo9zOrhhONfJkFpRvnBV3aMX7s,10591
358
358
  camel/toolkits/notion_mcp_toolkit.py,sha256=ie_6Z-7DqDhgTiwYX8L3X47rfWGwzgwQH_s2DaK1ckc,8362
359
359
  camel/toolkits/notion_toolkit.py,sha256=jmmVWk_WazRNWnx4r9DAvhFTAL-n_ige0tb32UHJ_ik,9752
360
360
  camel/toolkits/open_api_toolkit.py,sha256=Venfq8JwTMQfzRzzB7AYmYUMEX35hW0BjIv_ozFMiNk,23316
@@ -467,7 +467,7 @@ camel/verifiers/math_verifier.py,sha256=tA1D4S0sm8nsWISevxSN0hvSVtIUpqmJhzqfbuMo
467
467
  camel/verifiers/models.py,sha256=GdxYPr7UxNrR1577yW4kyroRcLGfd-H1GXgv8potDWU,2471
468
468
  camel/verifiers/physics_verifier.py,sha256=c1grrRddcrVN7szkxhv2QirwY9viIRSITWeWFF5HmLs,30187
469
469
  camel/verifiers/python_verifier.py,sha256=ogTz77wODfEcDN4tMVtiSkRQyoiZbHPY2fKybn59lHw,20558
470
- camel_ai-0.2.74a4.dist-info/METADATA,sha256=XpcuInW5zHzlK9MClfqSwrDheRmhuo6AWd6E-UZ9NG4,52186
471
- camel_ai-0.2.74a4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
472
- camel_ai-0.2.74a4.dist-info/licenses/LICENSE,sha256=id0nB2my5kG0xXeimIu5zZrbHLS6EQvxvkKkzIHaT2k,11343
473
- camel_ai-0.2.74a4.dist-info/RECORD,,
470
+ camel_ai-0.2.74a5.dist-info/METADATA,sha256=X-Y3HO2CVCYOih9vVqMbzZefgdBgxgZwbmp02XbpMjk,52186
471
+ camel_ai-0.2.74a5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
472
+ camel_ai-0.2.74a5.dist-info/licenses/LICENSE,sha256=id0nB2my5kG0xXeimIu5zZrbHLS6EQvxvkKkzIHaT2k,11343
473
+ camel_ai-0.2.74a5.dist-info/RECORD,,