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 +1 -1
- camel/models/anthropic_model.py +4 -1
- camel/toolkits/note_taking_toolkit.py +3 -4
- {camel_ai-0.2.74a4.dist-info → camel_ai-0.2.74a5.dist-info}/METADATA +1 -1
- {camel_ai-0.2.74a4.dist-info → camel_ai-0.2.74a5.dist-info}/RECORD +7 -7
- {camel_ai-0.2.74a4.dist-info → camel_ai-0.2.74a5.dist-info}/WHEEL +0 -0
- {camel_ai-0.2.74a4.dist-info → camel_ai-0.2.74a5.dist-info}/licenses/LICENSE +0 -0
camel/__init__.py
CHANGED
camel/models/anthropic_model.py
CHANGED
|
@@ -145,7 +145,10 @@ class AnthropicModel(OpenAICompatibleModel):
|
|
|
145
145
|
tokenization style.
|
|
146
146
|
"""
|
|
147
147
|
if not self._token_counter:
|
|
148
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
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,4 +1,4 @@
|
|
|
1
|
-
camel/__init__.py,sha256=
|
|
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=
|
|
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=
|
|
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.
|
|
471
|
-
camel_ai-0.2.
|
|
472
|
-
camel_ai-0.2.
|
|
473
|
-
camel_ai-0.2.
|
|
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,,
|
|
File without changes
|
|
File without changes
|