pycoze 0.1.137__py3-none-any.whl → 0.1.140__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 +2 -2
- pycoze/utils/__init__.py +1 -1
- pycoze/utils/arg.py +7 -0
- {pycoze-0.1.137.dist-info → pycoze-0.1.140.dist-info}/METADATA +1 -1
- {pycoze-0.1.137.dist-info → pycoze-0.1.140.dist-info}/RECORD +8 -8
- {pycoze-0.1.137.dist-info → pycoze-0.1.140.dist-info}/WHEEL +1 -1
- {pycoze-0.1.137.dist-info → pycoze-0.1.140.dist-info}/LICENSE +0 -0
- {pycoze-0.1.137.dist-info → pycoze-0.1.140.dist-info}/top_level.txt +0 -0
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.
|
8
|
-
from pycoze.
|
7
|
+
from pycoze.reference.bot import ref_bot
|
8
|
+
from pycoze.reference.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()
|
pycoze/utils/__init__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
from .arg import read_arg, read_params_file
|
1
|
+
from .arg import read_arg, read_params_file, read_json_file
|
2
2
|
from .text_or_file import to_text
|
pycoze/utils/arg.py
CHANGED
@@ -28,3 +28,10 @@ def read_params_file():
|
|
28
28
|
except Exception as e:
|
29
29
|
print(e)
|
30
30
|
return params
|
31
|
+
|
32
|
+
def read_json_file(filename):
|
33
|
+
params = read_params_file()
|
34
|
+
json_file = os.path.join(params['appPath'], 'JsonStorage', filename)
|
35
|
+
with open(filename, encoing='utf-8') as f:
|
36
|
+
return json.load(f)
|
37
|
+
|
@@ -3,7 +3,7 @@ pycoze/module.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
pycoze/ai/__init__.py,sha256=odM2lgYSnApxw4AzLV_5AyaxL5_MLfydOSB1VmLGFyA,75
|
4
4
|
pycoze/ai/vram_reserve.py,sha256=QbqaA8qv87cnEpOVDMygi0BNMxuhLYwj1UKfR_D5BD4,4340
|
5
5
|
pycoze/bot/__init__.py,sha256=6HHMxDQVOyZM9dtSjQm9tjGnhj4h7CixD0JOvEwTi48,41
|
6
|
-
pycoze/bot/bot.py,sha256=
|
6
|
+
pycoze/bot/bot.py,sha256=uBezgDfi8WOBguTB0oqFigFcB2CbCAU9rdrJrNQgzVE,3364
|
7
7
|
pycoze/bot/agent/__init__.py,sha256=YR9vpkEQn1e4937r_xFPJXUCPBEJ0SFzEQDBe2x3-YA,157
|
8
8
|
pycoze/bot/agent/agent.py,sha256=Aue8nWeW_I7e1jo4o7cUjFFjrsV9NtVUiTX3EQYHmbA,3507
|
9
9
|
pycoze/bot/agent/assistant.py,sha256=3iLxnRvf_ia0cP-FHK5Fv4ylltlnzPq1KscRCFYqjkc,1147
|
@@ -20,11 +20,11 @@ pycoze/ui/base.py,sha256=SCXVDK7PpMaBv6ovvabHcfRq_d2AWM0BRyxpNhuJN5A,1285
|
|
20
20
|
pycoze/ui/color.py,sha256=cT9Ib8uNzkOKxyW0IwVj46o4LwdB1xgNCj1_Rou9d_4,854
|
21
21
|
pycoze/ui/typ.py,sha256=NpT0FrbHvByOszBZMFtroRp7I7pN-38tYz_zPOPejF4,1723
|
22
22
|
pycoze/ui/ui_def.py,sha256=UhhU_yB3GV9ISbvTWT48hsHPHI250BhMILh6bu5Uioo,4206
|
23
|
-
pycoze/utils/__init__.py,sha256=
|
24
|
-
pycoze/utils/arg.py,sha256=
|
23
|
+
pycoze/utils/__init__.py,sha256=ET0W5wzq4zlY3dr1wHVbbeRKlKdC_zqHt9b0jZyHohw,94
|
24
|
+
pycoze/utils/arg.py,sha256=EJzv_NfoFC5vdphpnaoA0IYdb32TxuXXAXSe5ddc4mw,972
|
25
25
|
pycoze/utils/text_or_file.py,sha256=gpxZVWt2DW6YiEg_MnMuwg36VNf3TX383QD_1oZNB0Y,551
|
26
|
-
pycoze-0.1.
|
27
|
-
pycoze-0.1.
|
28
|
-
pycoze-0.1.
|
29
|
-
pycoze-0.1.
|
30
|
-
pycoze-0.1.
|
26
|
+
pycoze-0.1.140.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
|
27
|
+
pycoze-0.1.140.dist-info/METADATA,sha256=0camlS0C5fG9OMswWIiaj_JExidV_d1aCUFcR3algyE,726
|
28
|
+
pycoze-0.1.140.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
29
|
+
pycoze-0.1.140.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
|
30
|
+
pycoze-0.1.140.dist-info/RECORD,,
|
File without changes
|
File without changes
|