pycoze 0.1.143__py3-none-any.whl → 0.1.146__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
pycoze/reference/bot.py CHANGED
@@ -51,6 +51,8 @@ def {random_name}(command:str) -> str:
51
51
  exec(function_code)
52
52
  tool = to_agent_tool(eval(random_name))
53
53
  tool.func = wrapped_func(tool, module_path)
54
+ if tool.description is None:
55
+ tool.description = "This tool is used to " + tool.name + "."
54
56
  return tool
55
57
  except Exception as e:
56
58
  print(f"Error loading bot {bot_id}: {e}")
pycoze/reference/tool.py CHANGED
@@ -36,5 +36,7 @@ def ref_tools(tool_id):
36
36
 
37
37
  for tool in export_tools:
38
38
  tool.func = wrapped_func(tool, module_path)
39
+ if tool.description is None:
40
+ tool.description = "This tool is used to " + tool.name + "."
39
41
 
40
42
  return export_tools
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycoze
3
- Version: 0.1.143
3
+ Version: 0.1.146
4
4
  Summary: Package for pycoze only!
5
5
  Author: Yuan Jie Xiong
6
6
  Author-email: aiqqqqqqq@qq.com
@@ -12,9 +12,9 @@ pycoze/bot/agent/agent_types/__init__.py,sha256=zmU2Kmrv5mCdfg-QlPn2H6pWxbGeq8s7
12
12
  pycoze/bot/agent/agent_types/const.py,sha256=BfUKPrhAHREoMLHuFNG2bCIEkC1-f7K0LEqNg4RwiRE,70
13
13
  pycoze/bot/agent/agent_types/openai_func_call_agent.py,sha256=SnEm5MODHn2uMsaMNqgzULM_91vqLHC0TU6ovwCOqLU,6675
14
14
  pycoze/reference/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
- pycoze/reference/bot.py,sha256=47Lqm4TgMu6t4WChXD73cpIYmYDjCdkGfF36Wg2ZtDg,2032
15
+ pycoze/reference/bot.py,sha256=UMnDxCe_E3pz77Pw3my1be7SwcrIi9qhQLESZu8Q4M0,2152
16
16
  pycoze/reference/lib.py,sha256=sp3PqvsyE3OjSqgnykyaz_JARwelMGq44NQUU1x7IV4,2045
17
- pycoze/reference/tool.py,sha256=2PwQwGlhEXaz2Y1VvRpSW7DHo_j5r4rRTpWyVKZHI1o,1336
17
+ pycoze/reference/tool.py,sha256=tieFKJkWW65zP4ld5Vtcrz66Is21QOh-XAZD6rs_ol8,1446
18
18
  pycoze/ui/__init__.py,sha256=7xAfL2lfG7-jllPJEZUJO89xUE9sNzvo1y0WmBswjBI,458
19
19
  pycoze/ui/base.py,sha256=SCXVDK7PpMaBv6ovvabHcfRq_d2AWM0BRyxpNhuJN5A,1285
20
20
  pycoze/ui/color.py,sha256=cT9Ib8uNzkOKxyW0IwVj46o4LwdB1xgNCj1_Rou9d_4,854
@@ -23,8 +23,8 @@ pycoze/ui/ui_def.py,sha256=UhhU_yB3GV9ISbvTWT48hsHPHI250BhMILh6bu5Uioo,4206
23
23
  pycoze/utils/__init__.py,sha256=ET0W5wzq4zlY3dr1wHVbbeRKlKdC_zqHt9b0jZyHohw,94
24
24
  pycoze/utils/arg.py,sha256=orLVEGw3x2f3l7bZDbBPkkdDPSdqXo-_Rs-4ZhzmrEw,984
25
25
  pycoze/utils/text_or_file.py,sha256=gpxZVWt2DW6YiEg_MnMuwg36VNf3TX383QD_1oZNB0Y,551
26
- pycoze-0.1.143.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
27
- pycoze-0.1.143.dist-info/METADATA,sha256=WYApUGS2duroZA_uLJ82IdmBUtKdXii2nkWdpeIcY4s,726
28
- pycoze-0.1.143.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
29
- pycoze-0.1.143.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
30
- pycoze-0.1.143.dist-info/RECORD,,
26
+ pycoze-0.1.146.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
27
+ pycoze-0.1.146.dist-info/METADATA,sha256=kwGock8TR0QWHQbZ8dhcaPc6mjjd43BuPR_s0Q4VY1o,726
28
+ pycoze-0.1.146.dist-info/WHEEL,sha256=bFJAMchF8aTQGUgMZzHJyDDMPTO3ToJ7x23SLJa1SVo,92
29
+ pycoze-0.1.146.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
30
+ pycoze-0.1.146.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: bdist_wheel (0.45.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5