pycoze 0.1.32__py3-none-any.whl → 0.1.33__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pycoze/bot/bot.py +2 -2
- {pycoze-0.1.32.dist-info → pycoze-0.1.33.dist-info}/METADATA +1 -1
- {pycoze-0.1.32.dist-info → pycoze-0.1.33.dist-info}/RECORD +6 -6
- {pycoze-0.1.32.dist-info → pycoze-0.1.33.dist-info}/LICENSE +0 -0
- {pycoze-0.1.32.dist-info → pycoze-0.1.33.dist-info}/WHEEL +0 -0
- {pycoze-0.1.32.dist-info → pycoze-0.1.33.dist-info}/top_level.txt +0 -0
pycoze/bot/bot.py
CHANGED
@@ -26,7 +26,7 @@ def load_tools(bot_setting_file: str):
|
|
26
26
|
return tools
|
27
27
|
|
28
28
|
|
29
|
-
def
|
29
|
+
def agent_chat(bot_setting_file, history):
|
30
30
|
role_setting = load_role_setting(bot_setting_file)
|
31
31
|
tools = load_tools(bot_setting_file)
|
32
32
|
with open(llm_file, "r", encoding="utf-8") as f:
|
@@ -63,5 +63,5 @@ def chat(bot_setting_file: str):
|
|
63
63
|
history += [SystemMessage(content=message["content"])]
|
64
64
|
else:
|
65
65
|
raise ValueError("Invalid message")
|
66
|
-
result =
|
66
|
+
result = agent_chat(bot_setting_file, history)
|
67
67
|
output("assistant", result, history)
|
@@ -2,7 +2,7 @@ pycoze/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
pycoze/module.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
pycoze/bot/__init__.py,sha256=pciDtfcIXda7iFt9uI5Fpm0JKpGBhdXHmJv4966WTVU,21
|
4
4
|
pycoze/bot/base.py,sha256=GWYDVGGtiCpk6gv-163cAbDid_IsnMe5jTj7eZUMJQU,2679
|
5
|
-
pycoze/bot/bot.py,sha256=
|
5
|
+
pycoze/bot/bot.py,sha256=y-VRF8F75tdoYDPIkSca1jcQYgWJIw-_67koSGgo68g,2253
|
6
6
|
pycoze/bot/agent/__init__.py,sha256=IaYqQCJ3uBor92JdOxI_EY4HtYOHgej8lijr3UrN1Vc,161
|
7
7
|
pycoze/bot/agent/agent.py,sha256=vDbTCorUL6Eh2Az4uzwGsLa3Hp4EPcOkq62JpQXt8-s,3435
|
8
8
|
pycoze/bot/agent/assistant.py,sha256=QLeWaPi415P9jruYOm8qcIbC94cXXAhJYmLTkyC9NTQ,1267
|
@@ -21,8 +21,8 @@ pycoze/ui/ui_def.py,sha256=CNFYH8NC-WYmbceIPpxsRr9H6O006pMKukx7U-BOE1Q,3744
|
|
21
21
|
pycoze/utils/__init__.py,sha256=KExBkotf23dr2NfTEouWke5nJB1q2IuDXgHrmuyd95k,73
|
22
22
|
pycoze/utils/arg.py,sha256=rRujm1zKc0XlnNlpIJ6JAAaFiTzDGmL_RliIpSc5OD8,724
|
23
23
|
pycoze/utils/text_or_file.py,sha256=gpxZVWt2DW6YiEg_MnMuwg36VNf3TX383QD_1oZNB0Y,551
|
24
|
-
pycoze-0.1.
|
25
|
-
pycoze-0.1.
|
26
|
-
pycoze-0.1.
|
27
|
-
pycoze-0.1.
|
28
|
-
pycoze-0.1.
|
24
|
+
pycoze-0.1.33.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
|
25
|
+
pycoze-0.1.33.dist-info/METADATA,sha256=eZ3PUpQoFCtWtNaVjXlJdhNo1u6PKoA9LVdaWhHtzYE,719
|
26
|
+
pycoze-0.1.33.dist-info/WHEEL,sha256=UvcQYKBHoFqaQd6LKyqHw9fxEolWLQnlzP0h_LgJAfI,91
|
27
|
+
pycoze-0.1.33.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
|
28
|
+
pycoze-0.1.33.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|