pycoze 0.1.135__py3-none-any.whl → 0.1.137__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
pycoze/bot/bot.py CHANGED
@@ -4,8 +4,8 @@ from .agent import run_agent, Runnable, INPUT_MESSAGE, output
4
4
  import asyncio
5
5
  from langchain_core.messages import HumanMessage
6
6
  from pycoze import utils
7
- from pycoze.access.bot import import_bot
8
- from pycoze.access.tool import import_tools
7
+ from pycoze.access.bot import ref_bot
8
+ from pycoze.access.tool import ref_tools
9
9
  from langchain_core.utils.function_calling import convert_to_openai_tool
10
10
 
11
11
  params = utils.arg.read_params_file()
@@ -25,11 +25,11 @@ def load_abilities(bot_setting_file: str):
25
25
 
26
26
  abilities = []
27
27
  for bot_id in role_setting["bots"]:
28
- bot = import_bot(bot_id)
28
+ bot = ref_bot(bot_id)
29
29
  if bot:
30
30
  abilities.append(bot)
31
31
  for tool_id in role_setting["tools"]:
32
- abilities.extend(import_tools(tool_id))
32
+ abilities.extend(ref_tools(tool_id))
33
33
  return abilities
34
34
 
35
35
 
@@ -9,9 +9,9 @@ import json
9
9
 
10
10
  bot_index = 0
11
11
 
12
- def import_bot(bot_id):
12
+ def ref_bot(bot_id):
13
13
  global bot_index
14
- tool_base_path = "../../"
14
+ tool_base_path = "../../bot"
15
15
  module_path = os.path.join(tool_base_path, bot_id)
16
16
  module_path = os.path.normpath(os.path.abspath(module_path))
17
17
 
@@ -7,7 +7,7 @@ import langchain_core
7
7
  from .lib import ChangeDirectoryAndPath, ModuleManager, wrapped_func
8
8
 
9
9
 
10
- def import_tools(tool_id):
10
+ def ref_tools(tool_id):
11
11
  tool_base_path = "../../tool"
12
12
  module_path = os.path.join(tool_base_path, tool_id)
13
13
  module_path = os.path.normpath(os.path.abspath(module_path))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycoze
3
- Version: 0.1.135
3
+ Version: 0.1.137
4
4
  Summary: Package for pycoze only!
5
5
  Author: Yuan Jie Xiong
6
6
  Author-email: aiqqqqqqq@qq.com
@@ -1,13 +1,9 @@
1
1
  pycoze/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  pycoze/module.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- pycoze/access/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- pycoze/access/bot.py,sha256=eZuXTsZXfHqH7YVkKX4HnjWOx8XgEQbKMHuxZ8aeME8,2032
5
- pycoze/access/lib.py,sha256=sp3PqvsyE3OjSqgnykyaz_JARwelMGq44NQUU1x7IV4,2045
6
- pycoze/access/tool.py,sha256=mAx3dPbZpU_FWlK6uxoWqHbduuNM_EQU8kBmzEKkccE,1339
7
3
  pycoze/ai/__init__.py,sha256=odM2lgYSnApxw4AzLV_5AyaxL5_MLfydOSB1VmLGFyA,75
8
4
  pycoze/ai/vram_reserve.py,sha256=QbqaA8qv87cnEpOVDMygi0BNMxuhLYwj1UKfR_D5BD4,4340
9
5
  pycoze/bot/__init__.py,sha256=6HHMxDQVOyZM9dtSjQm9tjGnhj4h7CixD0JOvEwTi48,41
10
- pycoze/bot/bot.py,sha256=3vf1ayGbqSY7Sik3MhTRBY4UUZniFx1Julfo-tzQnuc,3370
6
+ pycoze/bot/bot.py,sha256=rleTB_Ld26GHcOeFMNU0htbYhIo00m1aybIDxxSrswM,3358
11
7
  pycoze/bot/agent/__init__.py,sha256=YR9vpkEQn1e4937r_xFPJXUCPBEJ0SFzEQDBe2x3-YA,157
12
8
  pycoze/bot/agent/agent.py,sha256=Aue8nWeW_I7e1jo4o7cUjFFjrsV9NtVUiTX3EQYHmbA,3507
13
9
  pycoze/bot/agent/assistant.py,sha256=3iLxnRvf_ia0cP-FHK5Fv4ylltlnzPq1KscRCFYqjkc,1147
@@ -15,6 +11,10 @@ pycoze/bot/agent/chat.py,sha256=kc0qgcrBSXdiMy49JwThZTV-0PAvzAhiUvbI5ILiSnU,571
15
11
  pycoze/bot/agent/agent_types/__init__.py,sha256=zmU2Kmrv5mCdfg-QlPn2H6pWxbGeq8s7YTqLhpzJC6k,179
16
12
  pycoze/bot/agent/agent_types/const.py,sha256=BfUKPrhAHREoMLHuFNG2bCIEkC1-f7K0LEqNg4RwiRE,70
17
13
  pycoze/bot/agent/agent_types/openai_func_call_agent.py,sha256=SnEm5MODHn2uMsaMNqgzULM_91vqLHC0TU6ovwCOqLU,6675
14
+ pycoze/reference/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
+ pycoze/reference/bot.py,sha256=47Lqm4TgMu6t4WChXD73cpIYmYDjCdkGfF36Wg2ZtDg,2032
16
+ pycoze/reference/lib.py,sha256=sp3PqvsyE3OjSqgnykyaz_JARwelMGq44NQUU1x7IV4,2045
17
+ pycoze/reference/tool.py,sha256=2PwQwGlhEXaz2Y1VvRpSW7DHo_j5r4rRTpWyVKZHI1o,1336
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=TNJhFfY7JYdLlzuP9GvgxfNXUtbgH_NUUJSqHXCxJn4,78
24
24
  pycoze/utils/arg.py,sha256=kA3KBQzXc2WlH5XbF8kfikfpqljiKaW7oY_GE4Qyffc,753
25
25
  pycoze/utils/text_or_file.py,sha256=gpxZVWt2DW6YiEg_MnMuwg36VNf3TX383QD_1oZNB0Y,551
26
- pycoze-0.1.135.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
27
- pycoze-0.1.135.dist-info/METADATA,sha256=yMVuSQmB5Cca5siQ4AJB6KDE_HmnKGndIw8Uzp5TCbM,726
28
- pycoze-0.1.135.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
29
- pycoze-0.1.135.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
30
- pycoze-0.1.135.dist-info/RECORD,,
26
+ pycoze-0.1.137.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
27
+ pycoze-0.1.137.dist-info/METADATA,sha256=p1bQ3Oj_ePXcjgIm6k6igMPSUysXXHzgGZJctQcXfIk,726
28
+ pycoze-0.1.137.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
29
+ pycoze-0.1.137.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
30
+ pycoze-0.1.137.dist-info/RECORD,,
File without changes
File without changes