pycoze 0.1.153__tar.gz → 0.1.155__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pycoze-0.1.153 → pycoze-0.1.155}/PKG-INFO +1 -1
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/bot/bot.py +5 -4
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze.egg-info/PKG-INFO +1 -1
- {pycoze-0.1.153 → pycoze-0.1.155}/setup.py +1 -1
- {pycoze-0.1.153 → pycoze-0.1.155}/LICENSE +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/README.md +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/__init__.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/ai/__init__.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/ai/vram_reserve.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/bot/__init__.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/bot/agent/__init__.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/bot/agent/agent.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/bot/agent/agent_types/__init__.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/bot/agent/agent_types/const.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/bot/agent/agent_types/openai_func_call_agent.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/bot/agent/assistant.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/bot/agent/chat.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/bot/agent_chat.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/reference/__init__.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/reference/bot.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/reference/lib.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/reference/tool.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/ui/__init__.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/ui/base.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/ui/color.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/ui/typ.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/ui/ui_def.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/utils/__init__.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/utils/arg.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze/utils/text_or_file.py +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze.egg-info/SOURCES.txt +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze.egg-info/dependency_links.txt +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/pycoze.egg-info/top_level.txt +0 -0
- {pycoze-0.1.153 → pycoze-0.1.155}/setup.cfg +0 -0
@@ -16,8 +16,9 @@ def chat(bot_setting_file: str):
|
|
16
16
|
history.append(HumanMessage(message["content"]))
|
17
17
|
result_queue = queue.Queue()
|
18
18
|
agent_chat_thread = threading.Thread(target=agent_chat, args=(bot_setting_file, history, result_queue))
|
19
|
-
|
20
|
-
|
19
|
+
agent_chat_thread.start()
|
20
|
+
agent_chat_thread.join()
|
21
|
+
result = result_queue.get()
|
21
22
|
history.append(output("assistant", result))
|
22
23
|
|
23
24
|
|
@@ -25,5 +26,5 @@ def chat(bot_setting_file: str):
|
|
25
26
|
def get_chat_response(bot_setting_file: str, input_text: str):
|
26
27
|
history = [HumanMessage(input_text)]
|
27
28
|
result_queue = queue.Queue()
|
28
|
-
|
29
|
-
return
|
29
|
+
agent_chat(bot_setting_file, history, result_queue)
|
30
|
+
return result_queue.get()
|
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
|
File without changes
|