pycoze 0.1.345__py3-none-any.whl → 0.1.347__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/tools.py CHANGED
@@ -233,15 +233,12 @@ class AttemptTaskCompletionTool(Tool):
233
233
 
234
234
  def execute(self) -> str:
235
235
  result = self.params["result"]
236
- info("assistant", "Completed:" + result + "\n")
237
- print("before run command")
238
236
  if (
239
237
  "command" in self.params
240
238
  and self.params["command"] is not None
241
239
  and type(self.params["command"]) == str
242
- and len(type(self.params["command"])) > 0
240
+ and len(self.params["command"]) > 0
243
241
  ):
244
- print("run command")
245
242
  result = subprocess.run(
246
243
  self.params["command"],
247
244
  shell=True,
@@ -251,7 +248,7 @@ class AttemptTaskCompletionTool(Tool):
251
248
  )
252
249
  return f"Task completed: {result}, executed command: {self.params['command']}, execution result: {result.stdout + result.stderr}"
253
250
  else:
254
- return f"Task completed: {result}"
251
+ return f"Task completed: {result}!"
255
252
 
256
253
 
257
254
  class ToolExecutor:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycoze
3
- Version: 0.1.345
3
+ Version: 0.1.347
4
4
  Summary: Package for pycoze only!
5
5
  Home-page: UNKNOWN
6
6
  Author: Yuan Jie Xiong
@@ -17,7 +17,7 @@ pycoze/bot/chat_base.py,sha256=ll9ulBPfKtsrJYLqBsrgaFKU7WjIPRDa-LjwCS6xM_M,9666
17
17
  pycoze/bot/lib.py,sha256=smigeWuhl8esHE-Y5l_9bpjJkEJ5OqrxTyPcO8JIubM,7224
18
18
  pycoze/bot/message.py,sha256=Zq-_k8HztBMOUIs3hbOvWvwHBNopn4UJJBliCROIGcc,718
19
19
  pycoze/bot/prompt.md,sha256=OBxwUY6yiwEmusnUHhwixWYByrWX3BpwfxG_Gfas8UM,15783
20
- pycoze/bot/tools.py,sha256=YPIOf8LtkKZkOUhbNDLZ552_ZSBCqEUBvHtHcFN7fbk,10455
20
+ pycoze/bot/tools.py,sha256=735HcYIyO00FoKrSw5grrydwKznrBmkYg_bZoNIymWQ,10325
21
21
  pycoze/reference/__init__.py,sha256=zgqGqvmA9HaqytEM33B6vi0kQVk8IiCwJaXa22xsFz8,114
22
22
  pycoze/reference/bot.py,sha256=pxHVYo0G3P3YZ--vBYbMEiEyBoxxPwaO5dMTf9WFMSc,2014
23
23
  pycoze/reference/lib.py,sha256=T-oBOKxkus5dTouc0oDgfRzUyi6aTyY-FF4yX7SzF5M,3755
@@ -33,8 +33,8 @@ pycoze/utils/arg.py,sha256=jop1tBfe5hYkHW1NSpCeaZBEznkgguBscj_7M2dWfrs,503
33
33
  pycoze/utils/env.py,sha256=5pWlXfM1F5ZU9hhv1rHlDEanjEW5wf0nbyez9bNRqqA,559
34
34
  pycoze/utils/socket.py,sha256=bZbFFRH4mfThzRqt55BAAGQ6eICx_ja4x8UGGrUdAm8,2428
35
35
  pycoze/utils/text_or_file.py,sha256=gpxZVWt2DW6YiEg_MnMuwg36VNf3TX383QD_1oZNB0Y,551
36
- pycoze-0.1.345.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
37
- pycoze-0.1.345.dist-info/METADATA,sha256=isyvUjbhc7A08tY-m6DWfap5tGBgek23V66C2yu0CU4,755
38
- pycoze-0.1.345.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
39
- pycoze-0.1.345.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
40
- pycoze-0.1.345.dist-info/RECORD,,
36
+ pycoze-0.1.347.dist-info/LICENSE,sha256=QStd_Qsd0-kAam_-sOesCIp_uKrGWeoKwt9M49NVkNU,1090
37
+ pycoze-0.1.347.dist-info/METADATA,sha256=tZfj1e9dDbFuGRIEK3BuaDaODum5eAr5dRW6-KsO6Bk,755
38
+ pycoze-0.1.347.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
39
+ pycoze-0.1.347.dist-info/top_level.txt,sha256=76dPeDhKvOCleL3ZC5gl1-y4vdS1tT_U1hxWVAn7sFo,7
40
+ pycoze-0.1.347.dist-info/RECORD,,