pycoze 0.1.136__tar.gz → 0.1.137__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pycoze-0.1.136 → pycoze-0.1.137}/PKG-INFO +1 -1
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze/bot/bot.py +4 -4
- {pycoze-0.1.136/pycoze/access → pycoze-0.1.137/pycoze/reference}/bot.py +1 -1
- {pycoze-0.1.136/pycoze/access → pycoze-0.1.137/pycoze/reference}/tool.py +1 -1
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze.egg-info/PKG-INFO +1 -1
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze.egg-info/SOURCES.txt +4 -4
- {pycoze-0.1.136 → pycoze-0.1.137}/setup.py +1 -1
- {pycoze-0.1.136 → pycoze-0.1.137}/LICENSE +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/README.md +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze/__init__.py +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze/ai/__init__.py +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze/ai/vram_reserve.py +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze/bot/__init__.py +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze/bot/agent/__init__.py +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze/bot/agent/agent.py +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze/bot/agent/agent_types/__init__.py +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze/bot/agent/agent_types/const.py +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze/bot/agent/agent_types/openai_func_call_agent.py +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze/bot/agent/assistant.py +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze/bot/agent/chat.py +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze/module.py +0 -0
- {pycoze-0.1.136/pycoze/access → pycoze-0.1.137/pycoze/reference}/__init__.py +0 -0
- {pycoze-0.1.136/pycoze/access → pycoze-0.1.137/pycoze/reference}/lib.py +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze/ui/__init__.py +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze/ui/base.py +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze/ui/color.py +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze/ui/typ.py +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze/ui/ui_def.py +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze/utils/__init__.py +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze/utils/arg.py +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze/utils/text_or_file.py +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze.egg-info/dependency_links.txt +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/pycoze.egg-info/top_level.txt +0 -0
- {pycoze-0.1.136 → pycoze-0.1.137}/setup.cfg +0 -0
@@ -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
|
8
|
-
from pycoze.access.tool import
|
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 =
|
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(
|
32
|
+
abilities.extend(ref_tools(tool_id))
|
33
33
|
return abilities
|
34
34
|
|
35
35
|
|
@@ -7,7 +7,7 @@ import langchain_core
|
|
7
7
|
from .lib import ChangeDirectoryAndPath, ModuleManager, wrapped_func
|
8
8
|
|
9
9
|
|
10
|
-
def
|
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))
|
@@ -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
|
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
|
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
|
File without changes
|
File without changes
|
File without changes
|