camel-ai 0.2.73a1__py3-none-any.whl → 0.2.73a2__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.

@@ -128,18 +128,14 @@ class SlackToolkit(BaseToolkit):
128
128
  return f"Error creating conversation: {e.response['error']}"
129
129
 
130
130
  def join_slack_channel(self, channel_id: str) -> str:
131
- r"""Joins an existing Slack channel.
131
+ r"""Joins an existing Slack channel. To get the `channel_id` of a
132
+ channel, you can use the `get_slack_channel_information` function.
132
133
 
133
134
  Args:
134
135
  channel_id (str): The ID of the Slack channel to join.
135
136
 
136
137
  Returns:
137
- str: A confirmation message indicating whether join successfully
138
- or an error message.
139
-
140
- Raises:
141
- SlackApiError: If there is an error during get slack channel
142
- information.
138
+ str: A string containing the API response from Slack.
143
139
  """
144
140
  from slack_sdk.errors import SlackApiError
145
141
 
@@ -148,21 +144,17 @@ class SlackToolkit(BaseToolkit):
148
144
  response = slack_client.conversations_join(channel=channel_id)
149
145
  return str(response)
150
146
  except SlackApiError as e:
151
- return f"Error creating conversation: {e.response['error']}"
147
+ return f"Error joining channel: {e.response['error']}"
152
148
 
153
149
  def leave_slack_channel(self, channel_id: str) -> str:
154
- r"""Leaves an existing Slack channel.
150
+ r"""Leaves an existing Slack channel. To get the `channel_id` of a
151
+ channel, you can use the `get_slack_channel_information` function.
155
152
 
156
153
  Args:
157
154
  channel_id (str): The ID of the Slack channel to leave.
158
155
 
159
156
  Returns:
160
- str: A confirmation message indicating whether leave successfully
161
- or an error message.
162
-
163
- Raises:
164
- SlackApiError: If there is an error during get slack channel
165
- information.
157
+ str: A string containing the API response from Slack.
166
158
  """
167
159
  from slack_sdk.errors import SlackApiError
168
160
 
@@ -171,18 +163,18 @@ class SlackToolkit(BaseToolkit):
171
163
  response = slack_client.conversations_leave(channel=channel_id)
172
164
  return str(response)
173
165
  except SlackApiError as e:
174
- return f"Error creating conversation: {e.response['error']}"
166
+ return f"Error leaving channel: {e.response['error']}"
175
167
 
176
168
  def get_slack_channel_information(self) -> str:
177
- r"""Retrieve Slack channels and return relevant information in JSON
178
- format.
169
+ r"""Retrieve a list of all public channels in the Slack workspace.
179
170
 
180
- Returns:
181
- str: JSON string containing information about Slack channels.
171
+ This function is crucial for discovering available channels and their
172
+ `channel_id`s, which are required by many other functions.
182
173
 
183
- Raises:
184
- SlackApiError: If there is an error during get slack channel
185
- information.
174
+ Returns:
175
+ str: A JSON string representing a list of channels. Each channel
176
+ object in the list contains 'id', 'name', 'created', and
177
+ 'num_members'. Returns an error message string on failure.
186
178
  """
187
179
  from slack_sdk.errors import SlackApiError
188
180
 
@@ -204,21 +196,20 @@ class SlackToolkit(BaseToolkit):
204
196
  ]
205
197
  return json.dumps(filtered_result, ensure_ascii=False)
206
198
  except SlackApiError as e:
207
- return f"Error creating conversation: {e.response['error']}"
199
+ return f"Error retrieving channel list: {e.response['error']}"
208
200
 
209
201
  def get_slack_channel_message(self, channel_id: str) -> str:
210
- r"""Retrieve messages from a Slack channel.
202
+ r"""Retrieve messages from a Slack channel. To get the `channel_id`
203
+ of a channel, you can use the `get_slack_channel_information`
204
+ function.
211
205
 
212
206
  Args:
213
207
  channel_id (str): The ID of the Slack channel to retrieve messages
214
208
  from.
215
209
 
216
210
  Returns:
217
- str: JSON string containing filtered message data.
218
-
219
- Raises:
220
- SlackApiError: If there is an error during get
221
- slack channel message.
211
+ str: A JSON string representing a list of messages. Each message
212
+ object contains 'user', 'text', and 'ts' (timestamp).
222
213
  """
223
214
  from slack_sdk.errors import SlackApiError
224
215
 
@@ -242,19 +233,20 @@ class SlackToolkit(BaseToolkit):
242
233
  file_path: Optional[str] = None,
243
234
  user: Optional[str] = None,
244
235
  ) -> str:
245
- r"""Send a message to a Slack channel.
236
+ r"""Send a message to a Slack channel. To get the `channel_id` of a
237
+ channel, you can use the `get_slack_channel_information` function.
246
238
 
247
239
  Args:
248
240
  message (str): The message to send.
249
- channel_id (str): The ID of the Slack channel to send message.
250
- file_path (Optional[str]): The path of the file to send.
251
- Defaults to `None`.
252
- user (Optional[str]): The user ID of the recipient.
253
- Defaults to `None`.
241
+ channel_id (str): The ID of the channel to send the message to.
242
+ file_path (Optional[str]): The local path of a file to upload
243
+ with the message.
244
+ user (Optional[str]): The ID of a user to send an ephemeral
245
+ message to (visible only to that user).
254
246
 
255
247
  Returns:
256
- str: A confirmation message indicating whether the message was sent
257
- successfully or an error message.
248
+ str: A confirmation message indicating success or an error
249
+ message.
258
250
  """
259
251
  from slack_sdk.errors import SlackApiError
260
252
 
@@ -280,25 +272,23 @@ class SlackToolkit(BaseToolkit):
280
272
  f"got response: {response}"
281
273
  )
282
274
  except SlackApiError as e:
283
- return f"Error creating conversation: {e.response['error']}"
275
+ return f"Error sending message: {e.response['error']}"
284
276
 
285
277
  def delete_slack_message(
286
278
  self,
287
279
  time_stamp: str,
288
280
  channel_id: str,
289
281
  ) -> str:
290
- r"""Delete a message to a Slack channel.
282
+ r"""Delete a message from a Slack channel.
291
283
 
292
284
  Args:
293
- time_stamp (str): Timestamp of the message to be deleted.
294
- channel_id (str): The ID of the Slack channel to delete message.
285
+ time_stamp (str): The 'ts' value of the message to be deleted.
286
+ You can get this from the `get_slack_channel_message` function.
287
+ channel_id (str): The ID of the channel where the message is. Use
288
+ `get_slack_channel_information` to find the `channel_id`.
295
289
 
296
290
  Returns:
297
- str: A confirmation message indicating whether the message
298
- was delete successfully or an error message.
299
-
300
- Raises:
301
- SlackApiError: If an error occurs while sending the message.
291
+ str: A string containing the API response from Slack.
302
292
  """
303
293
  from slack_sdk.errors import SlackApiError
304
294
 
@@ -309,7 +299,7 @@ class SlackToolkit(BaseToolkit):
309
299
  )
310
300
  return str(response)
311
301
  except SlackApiError as e:
312
- return f"Error creating conversation: {e.response['error']}"
302
+ return f"Error deleting message: {e.response['error']}"
313
303
 
314
304
  def get_tools(self) -> List[FunctionTool]:
315
305
  r"""Returns a list of FunctionTool objects representing the
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: camel-ai
3
- Version: 0.2.73a1
3
+ Version: 0.2.73a2
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=wTOL4fY0oWlHviwCNl_t2MQqROlrDeuKQRCvElto5kw,901
1
+ camel/__init__.py,sha256=pn3-Lfew1wFDh_51dBOk0tY-qRlN-W_XoCGsZ9kOZ7o,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
@@ -7,7 +7,7 @@ camel/agents/__init__.py,sha256=64weKqdvmpZcGWyVkO-OKASAmVUdrQjv60JApgPk_SA,1644
7
7
  camel/agents/_types.py,sha256=MeFZzay2kJA6evALQ-MbBTKW-0lu_0wBuKsxzH_4gWI,1552
8
8
  camel/agents/_utils.py,sha256=AR7Qqgbkmn4X2edYUQf1rdksGUyV5hm3iK1z-Dn0Mcg,6266
9
9
  camel/agents/base.py,sha256=c4bJYL3G3Z41SaFdMPMn8ZjLdFiFaVOFO6EQIfuCVR8,1124
10
- camel/agents/chat_agent.py,sha256=1vypUj36VlAHRSb9U-jzJPq3TqA4dS6b8kZAPIaqJ0c,150855
10
+ camel/agents/chat_agent.py,sha256=4Hn27mtUvUQmwMIFTDTUcTsXWIjyeISvz1FCOdm5HSM,151957
11
11
  camel/agents/critic_agent.py,sha256=L6cTbYjyZB0DCa51tQ6LZLA6my8kHLC4nktHySH78H4,10433
12
12
  camel/agents/deductive_reasoner_agent.py,sha256=6BZGaq1hR6hKJuQtOfoYQnk_AkZpw_Mr7mUy2MspQgs,13540
13
13
  camel/agents/embodied_agent.py,sha256=XBxBu5ZMmSJ4B2U3Z7SMwvLlgp6yNpaBe8HNQmY9CZA,7536
@@ -374,7 +374,7 @@ camel/toolkits/screenshot_toolkit.py,sha256=IwfvfLSfqrEywvPlDbtYJe1qcbrO5uC3Mxxv
374
374
  camel/toolkits/search_toolkit.py,sha256=2zKclYTQi5ThjPLiwKV7qX8GxuvgtgSLBHipTz-ZgWY,48360
375
375
  camel/toolkits/searxng_toolkit.py,sha256=a2GtE4FGSrmaIVvX6Yide-abBYD1wsHqitnDlx9fdVg,7664
376
376
  camel/toolkits/semantic_scholar_toolkit.py,sha256=Rh7eA_YPxV5pvPIzhjjvpr3vtlaCniJicrqzkPWW9_I,11634
377
- camel/toolkits/slack_toolkit.py,sha256=ZT6Ndlce2qjGsyZaNMfQ54nSEi7DOC9Ro7YqtK-u5O4,11651
377
+ camel/toolkits/slack_toolkit.py,sha256=ZnK_fRdrQiaAUpjkgHSv1iXdv1HKEgXMlKevu3QivB8,11849
378
378
  camel/toolkits/stripe_toolkit.py,sha256=07swo5znGTnorafC1uYLKB4NRcJIOPOx19J7tkpLYWk,10102
379
379
  camel/toolkits/sympy_toolkit.py,sha256=BAQnI8EFJydNUpKQWXBdleQ1Cm-srDBhFlqp9V9pbPQ,33757
380
380
  camel/toolkits/task_planning_toolkit.py,sha256=Ttw9fHae4omGC1SA-6uaeXVHJ1YkwiVloz_hO-fm1gw,4855
@@ -390,18 +390,28 @@ camel/toolkits/wolfram_alpha_toolkit.py,sha256=qeIM8ySn5ilcExBWtx-hDOc35bNcebLVn
390
390
  camel/toolkits/zapier_toolkit.py,sha256=A83y1UcfuopH7Fx82pORzypl1StbhBjB2HhyOqYa300,7124
391
391
  camel/toolkits/hybrid_browser_toolkit/__init__.py,sha256=vxjWhq7GjUKE5I9RGQU_GoikZJ-AVK4ertdvEqp9pd0,802
392
392
  camel/toolkits/hybrid_browser_toolkit/config_loader.py,sha256=UwBh7wG4-owoI2VfiNMum0O7dPWMYiEDxQKtq_GazU4,6903
393
- camel/toolkits/hybrid_browser_toolkit/hybrid_browser_toolkit.py,sha256=8ArSGFCx1bIrZR8cdRVUX6axy5Fxgk5ADEgiSrPQ_Bo,45269
393
+ camel/toolkits/hybrid_browser_toolkit/hybrid_browser_toolkit.py,sha256=gotOOlXJjfjv9Qnn89PLNhJ4_Rw_aMMU6gTJcG-uCf8,7938
394
+ camel/toolkits/hybrid_browser_toolkit/hybrid_browser_toolkit_ts.py,sha256=8ArSGFCx1bIrZR8cdRVUX6axy5Fxgk5ADEgiSrPQ_Bo,45269
394
395
  camel/toolkits/hybrid_browser_toolkit/ws_wrapper.py,sha256=5wssGj2LvREtyl91lC5pTIb0G7DZlFvLT_Pn-7XPESY,18460
395
396
  camel/toolkits/hybrid_browser_toolkit/ts/package-lock.json,sha256=_-YE9S_C1XT59A6upQp9lLuZcC67cV9QlbwAsEKkfyw,156337
396
397
  camel/toolkits/hybrid_browser_toolkit/ts/package.json,sha256=pUQm0xwXR7ZyWNv6O2QtHW00agnfAoX9F_XGXZlAxl4,745
397
398
  camel/toolkits/hybrid_browser_toolkit/ts/tsconfig.json,sha256=SwpQnq4Q-rwRobF2iWrP96mgmgwaVPZEv-nii5QIYEU,523
398
- camel/toolkits/hybrid_browser_toolkit/ts/websocket-server.js,sha256=mLjufus1_ugzRtWMTMQmn5xqsph-RNW55jkWrXbGxrg,6752
399
+ camel/toolkits/hybrid_browser_toolkit/ts/websocket-server.js,sha256=WsH16sf1zP1TPTKdVgbZAx42eHtgeQGqcTef2FPdR6Y,8556
399
400
  camel/toolkits/hybrid_browser_toolkit/ts/src/browser-scripts.js,sha256=NNwM_H2xaDrlrdac0PJK1iUBwdiuQsg9qKaMhHAvZuI,3160
400
401
  camel/toolkits/hybrid_browser_toolkit/ts/src/browser-session.ts,sha256=csJ6yelay5r0QULBzWybakO3IB7dQ5QpbrSdCxLlrwE,33165
401
402
  camel/toolkits/hybrid_browser_toolkit/ts/src/config-loader.ts,sha256=jYsu9qFuwpFIS5y8rQ5R6aX_HDlDEh2YsvFH6CQLhmg,6181
402
403
  camel/toolkits/hybrid_browser_toolkit/ts/src/hybrid-browser-toolkit.ts,sha256=VLhaKGQ2rz9OMRTluQ4h9kC0MMJz6-y29WxR-DQEu-c,16551
403
404
  camel/toolkits/hybrid_browser_toolkit/ts/src/index.ts,sha256=uJGHmGs640iCrjllqXDXwDE4hGW1VJA2YL6BkFkzYNs,353
404
405
  camel/toolkits/hybrid_browser_toolkit/ts/src/types.ts,sha256=Soid_nh1Ft829pKe_Xt1wxGf3pMSY2vDx4MJHGlhzaA,2442
406
+ camel/toolkits/hybrid_browser_toolkit_py/__init__.py,sha256=tPQloCw-Ayl1lPfyvzGJkMFa1ze3ilXJq_1Oz5jg5s4,796
407
+ camel/toolkits/hybrid_browser_toolkit_py/actions.py,sha256=x6X-kEdQx3K1ID-BBwdQEciX6C0KMt5QUszpnksnj3A,15003
408
+ camel/toolkits/hybrid_browser_toolkit_py/agent.py,sha256=0ifwhYUDJ5GLxfdpC5KquPaW1a0QBAutp2Y9y0YFujw,11685
409
+ camel/toolkits/hybrid_browser_toolkit_py/browser_session.py,sha256=fgV1o4pWOQ_fUvmpk7UHYcJCqHY_cmivoY_OB0ZKv3s,26866
410
+ camel/toolkits/hybrid_browser_toolkit_py/config_loader.py,sha256=0zpDq3aFKEva2jc38kgLHnyxypIDk9SOcMjoP26tozo,15414
411
+ camel/toolkits/hybrid_browser_toolkit_py/hybrid_browser_toolkit.py,sha256=nph9Nyam4349zPPA6f2NZ7KPA-xNLW18qHqooBeVlFM,76798
412
+ camel/toolkits/hybrid_browser_toolkit_py/snapshot.py,sha256=3vQaFK5C1P8WnkK2eDMaFOizrZf4uUAW0LxdeoF4F2w,8539
413
+ camel/toolkits/hybrid_browser_toolkit_py/stealth_script.js,sha256=z4XRSVUpAS87Sj36s3bY8XXhvRcHBlgsUOyMxV2HI80,27650
414
+ camel/toolkits/hybrid_browser_toolkit_py/unified_analyzer.js,sha256=VnzIn0KcEtxuncJi-OPZzdWbLSeSHCH-7sviFAGNM8g,40823
405
415
  camel/toolkits/open_api_specs/security_config.py,sha256=ZVnBa_zEifaE_ao2xsvV5majuJHpn2Tn7feMDOnj-eo,898
406
416
  camel/toolkits/open_api_specs/biztoc/__init__.py,sha256=OKCZrQCDwaWtXIN_2rA9FSqEvgpQRieRoHh7Ek6N16A,702
407
417
  camel/toolkits/open_api_specs/biztoc/ai-plugin.json,sha256=IJinQbLv5MFPGFwdN7PbOhwArFVExSEZdJspe-mOBIo,866
@@ -457,7 +467,7 @@ camel/verifiers/math_verifier.py,sha256=tA1D4S0sm8nsWISevxSN0hvSVtIUpqmJhzqfbuMo
457
467
  camel/verifiers/models.py,sha256=GdxYPr7UxNrR1577yW4kyroRcLGfd-H1GXgv8potDWU,2471
458
468
  camel/verifiers/physics_verifier.py,sha256=c1grrRddcrVN7szkxhv2QirwY9viIRSITWeWFF5HmLs,30187
459
469
  camel/verifiers/python_verifier.py,sha256=ogTz77wODfEcDN4tMVtiSkRQyoiZbHPY2fKybn59lHw,20558
460
- camel_ai-0.2.73a1.dist-info/METADATA,sha256=fyFGeV9znnEsiURZU0Za6FeAkyzm6_hqzk-GLa53aOQ,50334
461
- camel_ai-0.2.73a1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
462
- camel_ai-0.2.73a1.dist-info/licenses/LICENSE,sha256=id0nB2my5kG0xXeimIu5zZrbHLS6EQvxvkKkzIHaT2k,11343
463
- camel_ai-0.2.73a1.dist-info/RECORD,,
470
+ camel_ai-0.2.73a2.dist-info/METADATA,sha256=cZbuO7_djNwJRLDIsjoopizSes24a2pjAewf7XM-u0A,50334
471
+ camel_ai-0.2.73a2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
472
+ camel_ai-0.2.73a2.dist-info/licenses/LICENSE,sha256=id0nB2my5kG0xXeimIu5zZrbHLS6EQvxvkKkzIHaT2k,11343
473
+ camel_ai-0.2.73a2.dist-info/RECORD,,