pycoze 0.1.142__tar.gz → 0.1.146__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pycoze-0.1.142 → pycoze-0.1.146}/PKG-INFO +1 -1
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/reference/bot.py +2 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/reference/tool.py +2 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/utils/arg.py +1 -1
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze.egg-info/PKG-INFO +1 -1
- {pycoze-0.1.142 → pycoze-0.1.146}/setup.py +1 -1
- {pycoze-0.1.142 → pycoze-0.1.146}/LICENSE +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/README.md +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/__init__.py +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/ai/__init__.py +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/ai/vram_reserve.py +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/bot/__init__.py +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/bot/agent/__init__.py +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/bot/agent/agent.py +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/bot/agent/agent_types/__init__.py +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/bot/agent/agent_types/const.py +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/bot/agent/agent_types/openai_func_call_agent.py +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/bot/agent/assistant.py +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/bot/agent/chat.py +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/bot/bot.py +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/module.py +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/reference/__init__.py +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/reference/lib.py +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/ui/__init__.py +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/ui/base.py +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/ui/color.py +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/ui/typ.py +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/ui/ui_def.py +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/utils/__init__.py +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze/utils/text_or_file.py +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze.egg-info/SOURCES.txt +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze.egg-info/dependency_links.txt +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/pycoze.egg-info/top_level.txt +0 -0
- {pycoze-0.1.142 → pycoze-0.1.146}/setup.cfg +0 -0
@@ -51,6 +51,8 @@ def {random_name}(command:str) -> str:
|
|
51
51
|
exec(function_code)
|
52
52
|
tool = to_agent_tool(eval(random_name))
|
53
53
|
tool.func = wrapped_func(tool, module_path)
|
54
|
+
if tool.description is None:
|
55
|
+
tool.description = "This tool is used to " + tool.name + "."
|
54
56
|
return tool
|
55
57
|
except Exception as e:
|
56
58
|
print(f"Error loading bot {bot_id}: {e}")
|
@@ -33,6 +33,6 @@ def read_params_file():
|
|
33
33
|
def read_json_file(filename):
|
34
34
|
params = read_params_file()
|
35
35
|
json_file = os.path.join(params['appPath'], 'JsonStorage', filename)
|
36
|
-
with open(
|
36
|
+
with open(json_file, encoding='utf-8') as f:
|
37
37
|
return json.load(f)
|
38
38
|
|
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
|