pycoze 0.1.135__tar.gz → 0.1.137__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. {pycoze-0.1.135 → pycoze-0.1.137}/PKG-INFO +1 -1
  2. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze/bot/bot.py +4 -4
  3. {pycoze-0.1.135/pycoze/access → pycoze-0.1.137/pycoze/reference}/bot.py +2 -2
  4. {pycoze-0.1.135/pycoze/access → pycoze-0.1.137/pycoze/reference}/tool.py +1 -1
  5. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze.egg-info/PKG-INFO +1 -1
  6. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze.egg-info/SOURCES.txt +4 -4
  7. {pycoze-0.1.135 → pycoze-0.1.137}/setup.py +1 -1
  8. {pycoze-0.1.135 → pycoze-0.1.137}/LICENSE +0 -0
  9. {pycoze-0.1.135 → pycoze-0.1.137}/README.md +0 -0
  10. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze/__init__.py +0 -0
  11. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze/ai/__init__.py +0 -0
  12. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze/ai/vram_reserve.py +0 -0
  13. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze/bot/__init__.py +0 -0
  14. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze/bot/agent/__init__.py +0 -0
  15. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze/bot/agent/agent.py +0 -0
  16. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze/bot/agent/agent_types/__init__.py +0 -0
  17. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze/bot/agent/agent_types/const.py +0 -0
  18. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze/bot/agent/agent_types/openai_func_call_agent.py +0 -0
  19. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze/bot/agent/assistant.py +0 -0
  20. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze/bot/agent/chat.py +0 -0
  21. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze/module.py +0 -0
  22. {pycoze-0.1.135/pycoze/access → pycoze-0.1.137/pycoze/reference}/__init__.py +0 -0
  23. {pycoze-0.1.135/pycoze/access → pycoze-0.1.137/pycoze/reference}/lib.py +0 -0
  24. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze/ui/__init__.py +0 -0
  25. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze/ui/base.py +0 -0
  26. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze/ui/color.py +0 -0
  27. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze/ui/typ.py +0 -0
  28. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze/ui/ui_def.py +0 -0
  29. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze/utils/__init__.py +0 -0
  30. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze/utils/arg.py +0 -0
  31. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze/utils/text_or_file.py +0 -0
  32. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze.egg-info/dependency_links.txt +0 -0
  33. {pycoze-0.1.135 → pycoze-0.1.137}/pycoze.egg-info/top_level.txt +0 -0
  34. {pycoze-0.1.135 → pycoze-0.1.137}/setup.cfg +0 -0
@@ -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
@@ -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
@@ -7,10 +7,6 @@ pycoze.egg-info/PKG-INFO
7
7
  pycoze.egg-info/SOURCES.txt
8
8
  pycoze.egg-info/dependency_links.txt
9
9
  pycoze.egg-info/top_level.txt
10
- pycoze/access/__init__.py
11
- pycoze/access/bot.py
12
- pycoze/access/lib.py
13
- pycoze/access/tool.py
14
10
  pycoze/ai/__init__.py
15
11
  pycoze/ai/vram_reserve.py
16
12
  pycoze/bot/__init__.py
@@ -22,6 +18,10 @@ pycoze/bot/agent/chat.py
22
18
  pycoze/bot/agent/agent_types/__init__.py
23
19
  pycoze/bot/agent/agent_types/const.py
24
20
  pycoze/bot/agent/agent_types/openai_func_call_agent.py
21
+ pycoze/reference/__init__.py
22
+ pycoze/reference/bot.py
23
+ pycoze/reference/lib.py
24
+ pycoze/reference/tool.py
25
25
  pycoze/ui/__init__.py
26
26
  pycoze/ui/base.py
27
27
  pycoze/ui/color.py
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="pycoze",
5
- version="0.1.135",
5
+ version="0.1.137",
6
6
  packages=find_packages(),
7
7
  install_requires=[],
8
8
  author="Yuan Jie Xiong",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes