pycoze 0.1.104__tar.gz → 0.1.105__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pycoze-0.1.104 → pycoze-0.1.105}/PKG-INFO +1 -1
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/access/bot_for_bot.py +2 -1
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze.egg-info/PKG-INFO +1 -1
- {pycoze-0.1.104 → pycoze-0.1.105}/setup.py +1 -1
- {pycoze-0.1.104 → pycoze-0.1.105}/LICENSE +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/README.md +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/__init__.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/access/__init__.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/access/lib.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/access/tool_for_bot.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/ai/__init__.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/ai/vram_reserve.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/bot/__init__.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/bot/agent/__init__.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/bot/agent/agent.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/bot/agent/agent_types/__init__.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/bot/agent/agent_types/openai_func_call_agent.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/bot/agent/assistant.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/bot/agent/chat.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/bot/bot.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/module.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/ui/__init__.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/ui/base.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/ui/color.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/ui/typ.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/ui/ui_def.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/utils/__init__.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/utils/arg.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze/utils/text_or_file.py +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze.egg-info/SOURCES.txt +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze.egg-info/dependency_links.txt +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/pycoze.egg-info/top_level.txt +0 -0
- {pycoze-0.1.104 → pycoze-0.1.105}/setup.cfg +0 -0
@@ -22,6 +22,7 @@ def import_bot(bot_id):
|
|
22
22
|
bot_setting = module_path + "/botSetting.json"
|
23
23
|
with open(bot_setting, "r", encoding="utf-8") as f:
|
24
24
|
bot_setting = json.load(f)
|
25
|
+
name = bot_setting["name"]
|
25
26
|
module = importlib.import_module("bot_function")
|
26
27
|
chat_func = getattr(module, "chat")
|
27
28
|
random_name = "bot_" + bot_id[-6:]
|
@@ -29,7 +30,7 @@ def import_bot(bot_id):
|
|
29
30
|
function_code = f"""
|
30
31
|
def {random_name}(command:str) -> str:
|
31
32
|
\"\"\"
|
32
|
-
本函数可以让你与虚拟人角色({
|
33
|
+
本函数可以让你与虚拟人角色({name})进行交互。
|
33
34
|
该函数接收一个指令字符串,并返回虚拟人执行该指令后的结果。
|
34
35
|
|
35
36
|
Args:
|
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
|
File without changes
|