pycoze 0.1.137__tar.gz → 0.1.140__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pycoze-0.1.137 → pycoze-0.1.140}/PKG-INFO +1 -1
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/bot/bot.py +2 -2
- pycoze-0.1.140/pycoze/utils/__init__.py +2 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/utils/arg.py +7 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze.egg-info/PKG-INFO +1 -1
- {pycoze-0.1.137 → pycoze-0.1.140}/setup.py +1 -1
- pycoze-0.1.137/pycoze/utils/__init__.py +0 -2
- {pycoze-0.1.137 → pycoze-0.1.140}/LICENSE +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/README.md +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/__init__.py +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/ai/__init__.py +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/ai/vram_reserve.py +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/bot/__init__.py +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/bot/agent/__init__.py +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/bot/agent/agent.py +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/bot/agent/agent_types/__init__.py +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/bot/agent/agent_types/const.py +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/bot/agent/agent_types/openai_func_call_agent.py +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/bot/agent/assistant.py +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/bot/agent/chat.py +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/module.py +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/reference/__init__.py +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/reference/bot.py +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/reference/lib.py +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/reference/tool.py +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/ui/__init__.py +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/ui/base.py +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/ui/color.py +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/ui/typ.py +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/ui/ui_def.py +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze/utils/text_or_file.py +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze.egg-info/SOURCES.txt +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze.egg-info/dependency_links.txt +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/pycoze.egg-info/top_level.txt +0 -0
- {pycoze-0.1.137 → pycoze-0.1.140}/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.
|
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()
|
@@ -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
|
+
|
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
|
File without changes
|