pycoze 0.1.53__py3-none-any.whl → 0.1.55__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/agent/agent.py CHANGED
@@ -22,20 +22,20 @@ async def run_agent(agent, inputs: list):
22
22
  and isinstance(event["data"]["input"], list)
23
23
  ):
24
24
  input_list = event["data"]["input"]
25
+ print("input_list", input_list)
25
26
  for msg in input_list:
26
27
  if isinstance(msg, AIMessage) and not isinstance(
27
28
  msg, AIMessageChunk
28
29
  ):
29
30
  content = msg.content
30
31
  if content:
31
- content_list.append(content)
32
+ # content_list.append(content)
33
+ content_list = [content]
32
34
  elif kind == "on_chat_model_stream":
33
35
  content = event["data"]["chunk"].content
34
36
  if content:
35
37
  info("assistant", content)
36
38
  elif kind == "on_chain_start":
37
- print("patch")
38
- content_list = [] # temp
39
39
  data = event["data"]
40
40
  if "input" in data:
41
41
  input_list = (
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycoze
3
- Version: 0.1.53
3
+ Version: 0.1.55
4
4
  Summary: Package for pycoze only!
5
5
  Author: Yuan Jie Xiong
6
6
  Author-email: aiqqqqqqq@qq.com
@@ -5,7 +5,7 @@ pycoze/access/tool_for_bot.py,sha256=Nv6XlxcqaLaMVQNDkpcthlqaSxyfHoOfWiTScQXO22Y
5
5
  pycoze/bot/__init__.py,sha256=pciDtfcIXda7iFt9uI5Fpm0JKpGBhdXHmJv4966WTVU,21
6
6
  pycoze/bot/bot.py,sha256=URQYW8mbcsjIsO3pNT-QFzWNwQFtOhUJG62dfxqZTLM,2589
7
7
  pycoze/bot/agent/__init__.py,sha256=IaYqQCJ3uBor92JdOxI_EY4HtYOHgej8lijr3UrN1Vc,161
8
- pycoze/bot/agent/agent.py,sha256=gkW9m-Z085uKe1PeDg36y7bFq4SdxF9B4f07QKrjweo,4440
8
+ pycoze/bot/agent/agent.py,sha256=8toViiEHUWPYCapPg2dHUiW6Teqffz7UW8JrXMFR7ts,4486
9
9
  pycoze/bot/agent/assistant.py,sha256=QLeWaPi415P9jruYOm8qcIbC94cXXAhJYmLTkyC9NTQ,1267
10
10
  pycoze/bot/agent/chat.py,sha256=kc0qgcrBSXdiMy49JwThZTV-0PAvzAhiUvbI5ILiSnU,571
11
11
  pycoze/bot/agent/agent_types/__init__.py,sha256=W2jTNMLqUMqgCMG0Tw0d8n7WpsbsnIonqaPR-YLegLU,210
@@ -22,8 +22,8 @@ pycoze/ui/ui_def.py,sha256=CNFYH8NC-WYmbceIPpxsRr9H6O006pMKukx7U-BOE1Q,3744
22
22
  pycoze/utils/__init__.py,sha256=KExBkotf23dr2NfTEouWke5nJB1q2IuDXgHrmuyd95k,73
23
23
  pycoze/utils/arg.py,sha256=rRujm1zKc0XlnNlpIJ6JAAaFiTzDGmL_RliIpSc5OD8,724
24
24
  pycoze/utils/text_or_file.py,sha256=gpxZVWt2DW6YiEg_MnMuwg36VNf3TX383QD_1oZNB0Y,551
25
- pycoze-0.1.53.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
26
- pycoze-0.1.53.dist-info/METADATA,sha256=V8HKZHv06X32YDyCXCkLtIKZ1i_5Mc25SWum7a4fK6Y,719
27
- pycoze-0.1.53.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
28
- pycoze-0.1.53.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
29
- pycoze-0.1.53.dist-info/RECORD,,
25
+ pycoze-0.1.55.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
26
+ pycoze-0.1.55.dist-info/METADATA,sha256=BgoXH0cKRqsi1Ys8PTJ27fsZZMOMbjZHsuYIHxTN0rg,719
27
+ pycoze-0.1.55.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
28
+ pycoze-0.1.55.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
29
+ pycoze-0.1.55.dist-info/RECORD,,