camel-ai 0.2.73a12__py3-none-any.whl → 0.2.74a1__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.73a12'
17
+ __version__ = '0.2.74a1'
18
18
 
19
19
  __all__ = [
20
20
  '__version__',
@@ -1143,6 +1143,7 @@ class TerminalToolkit(BaseToolkit):
1143
1143
  universal_newlines=True,
1144
1144
  env=os.environ.copy(),
1145
1145
  preexec_fn=preexec_fn,
1146
+ errors='replace', # Handle non-UTF-8 characters
1146
1147
  )
1147
1148
 
1148
1149
  self.shell_sessions[id]["process"] = proc
@@ -1459,8 +1460,17 @@ class TerminalToolkit(BaseToolkit):
1459
1460
  if press_enter:
1460
1461
  input = input + "\n"
1461
1462
 
1462
- # Write bytes to stdin
1463
- process.stdin.write(input.encode('utf-8'))
1463
+ # Write to stdin - handle encoding
1464
+ if hasattr(process.stdin, 'write'):
1465
+ if isinstance(input, str):
1466
+ process.stdin.write(input)
1467
+ else:
1468
+ process.stdin.write(
1469
+ input.decode('utf-8', errors='replace')
1470
+ )
1471
+ else:
1472
+ # Fallback for byte mode
1473
+ process.stdin.write(input.encode('utf-8', errors='replace'))
1464
1474
  process.stdin.flush()
1465
1475
 
1466
1476
  return f"Input sent to process in session '{id}'"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: camel-ai
3
- Version: 0.2.73a12
3
+ Version: 0.2.74a1
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
@@ -237,7 +237,7 @@ Requires-Dist: exa-py<2,>=1.10.0; extra == 'eigent'
237
237
  Requires-Dist: ffmpeg-python<0.3,>=0.2.0; extra == 'eigent'
238
238
  Requires-Dist: html2text>=2024.2.26; extra == 'eigent'
239
239
  Requires-Dist: imageio[pyav]<3,>=2.34.2; extra == 'eigent'
240
- Requires-Dist: markitdown>=0.1.1; extra == 'eigent'
240
+ Requires-Dist: markitdown[all]>=0.1.1; extra == 'eigent'
241
241
  Requires-Dist: mcp-server-fetch==2025.1.17; extra == 'eigent'
242
242
  Requires-Dist: mcp-simple-arxiv==0.2.2; extra == 'eigent'
243
243
  Requires-Dist: numpy<=2.2,>=1.2; extra == 'eigent'
@@ -1,4 +1,4 @@
1
- camel/__init__.py,sha256=SVzAra1VgfF-Ju3qH_l_Bw4bZ5ncvd9qrUgJ1AntqHM,902
1
+ camel/__init__.py,sha256=8pOuG52pAYjv7JxDiE9-sAzbvR1CPfkYJQ4LV-73jQo,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
@@ -378,7 +378,7 @@ camel/toolkits/slack_toolkit.py,sha256=iBVkDIpfsR5QwaNCqA4O4UkCwpdLhJjYCA8Gka7U9
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
381
- camel/toolkits/terminal_toolkit.py,sha256=gHsBZl1GRiP9dzqvksk1Kf7QahhRJZBQlvZZ27oLTWE,68149
381
+ camel/toolkits/terminal_toolkit.py,sha256=RL2JBTxL0rKWoxH2aLeJuCVkMtcR4w1OEBe5DYnG1p8,68598
382
382
  camel/toolkits/thinking_toolkit.py,sha256=nZYLvKWIx2BM1DYu69I9B5EISAG7aYcLYXKv9663BVk,8000
383
383
  camel/toolkits/twitter_toolkit.py,sha256=Px4N8aUxUzy01LhGSWkdrC2JgwKkrY3cvxgMeJ2XYfU,15939
384
384
  camel/toolkits/video_analysis_toolkit.py,sha256=h6D7b1MAAzaHn222n_YKtwG-EGEGgMt7mBrNNVipYZc,23361
@@ -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.73a12.dist-info/METADATA,sha256=V3pAR1Y-D3n6hZ83bzOSwON0In3tsseEpazhLgVjXRo,52127
471
- camel_ai-0.2.73a12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
472
- camel_ai-0.2.73a12.dist-info/licenses/LICENSE,sha256=id0nB2my5kG0xXeimIu5zZrbHLS6EQvxvkKkzIHaT2k,11343
473
- camel_ai-0.2.73a12.dist-info/RECORD,,
470
+ camel_ai-0.2.74a1.dist-info/METADATA,sha256=9avJ8-HqA3ZvmKdT0ziIrSTFWN216vo7cMvg1Qta6hk,52131
471
+ camel_ai-0.2.74a1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
472
+ camel_ai-0.2.74a1.dist-info/licenses/LICENSE,sha256=id0nB2my5kG0xXeimIu5zZrbHLS6EQvxvkKkzIHaT2k,11343
473
+ camel_ai-0.2.74a1.dist-info/RECORD,,