pycoze 0.1.336__py3-none-any.whl → 0.1.338__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.
pycoze/bot/tools.py CHANGED
@@ -2,7 +2,7 @@ import os
2
2
  import re
3
3
  import subprocess
4
4
  import fnmatch
5
- from typing import Dict, List
5
+ from typing import Dict, Tuple
6
6
  from .message import info
7
7
  from .lib import get_formatted_filelist_str, read_local_file, resolve_relative_path
8
8
  from pycoze import ai
@@ -254,7 +254,7 @@ class ToolExecutor:
254
254
  }
255
255
 
256
256
  @classmethod
257
- def execute_tool(cls, cwd:str, tool_request, abilities) -> List[bool, bool, any]:
257
+ def execute_tool(cls, cwd:str, tool_request, abilities) -> Tuple[bool, bool, any]:
258
258
  """执行工具"""
259
259
  try:
260
260
  tool_name = list(tool_request.keys())[0]
@@ -271,7 +271,7 @@ class ToolExecutor:
271
271
  print("Execute tool error:", traceback.format_exc())
272
272
  return False, False, traceback.format_exc()
273
273
  try:
274
- result = json.dumps(result, indent=4)
274
+ result = json.dumps(result, indent=4, ensure_ascii=False)
275
275
  except:
276
276
  return True, False, str(result)
277
277
  return True, True,str(result)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pycoze
3
- Version: 0.1.336
3
+ Version: 0.1.338
4
4
  Summary: Package for pycoze only!
5
5
  Author: Yuan Jie Xiong
6
6
  Author-email: aiqqqqqqq@qq.com
@@ -17,7 +17,7 @@ pycoze/bot/chat_base.py,sha256=7x1PhprjImWfzItm-1r3pwJyPEvXaQv8OKfqCPUwodw,9403
17
17
  pycoze/bot/lib.py,sha256=smigeWuhl8esHE-Y5l_9bpjJkEJ5OqrxTyPcO8JIubM,7224
18
18
  pycoze/bot/message.py,sha256=Zq-_k8HztBMOUIs3hbOvWvwHBNopn4UJJBliCROIGcc,718
19
19
  pycoze/bot/prompt.md,sha256=OBxwUY6yiwEmusnUHhwixWYByrWX3BpwfxG_Gfas8UM,15783
20
- pycoze/bot/tools.py,sha256=oInV6JaVzjat9AvSpk7-zQapPR8LzrYR9zIs133ua-s,9931
20
+ pycoze/bot/tools.py,sha256=23iDk0_myJcQDOErKm4LRGr1Foane1n_RNNKJPAmgdY,9953
21
21
  pycoze/reference/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  pycoze/reference/bot.py,sha256=pxHVYo0G3P3YZ--vBYbMEiEyBoxxPwaO5dMTf9WFMSc,2014
23
23
  pycoze/reference/lib.py,sha256=ixiexCA6XWAda_G2ZVDSbFqTJmbkTvYLN47-nc5zyFU,3530
@@ -33,8 +33,8 @@ pycoze/utils/arg.py,sha256=jop1tBfe5hYkHW1NSpCeaZBEznkgguBscj_7M2dWfrs,503
33
33
  pycoze/utils/env.py,sha256=5pWlXfM1F5ZU9hhv1rHlDEanjEW5wf0nbyez9bNRqqA,559
34
34
  pycoze/utils/socket.py,sha256=bZbFFRH4mfThzRqt55BAAGQ6eICx_ja4x8UGGrUdAm8,2428
35
35
  pycoze/utils/text_or_file.py,sha256=gpxZVWt2DW6YiEg_MnMuwg36VNf3TX383QD_1oZNB0Y,551
36
- pycoze-0.1.336.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
37
- pycoze-0.1.336.dist-info/METADATA,sha256=gt5s7WaW0VCwFrNxgGFARZuU6_PsS0Gk-qyMLyaAac4,854
38
- pycoze-0.1.336.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
39
- pycoze-0.1.336.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
40
- pycoze-0.1.336.dist-info/RECORD,,
36
+ pycoze-0.1.338.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
37
+ pycoze-0.1.338.dist-info/METADATA,sha256=ykfgjaDyzfNqj1a-bopncGmAgefSJPt6sp_zz26ndnQ,854
38
+ pycoze-0.1.338.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
39
+ pycoze-0.1.338.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
40
+ pycoze-0.1.338.dist-info/RECORD,,