beswarm 0.1.82__py3-none-any.whl → 0.1.83__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.
beswarm/tools/worker.py CHANGED
@@ -113,6 +113,11 @@ async def worker(goal, tools, work_dir, cache_messages=None):
113
113
  if "fetch_gpt_response_stream HTTP Error', 'status_code': 404" in next_instruction:
114
114
  raise Exception(f"Model: {instruction_agent_config['engine']} not found!")
115
115
  if "'status_code': 413" in next_instruction:
116
+ end_time = datetime.now()
117
+ total_time = end_time - start_time
118
+ print(f"\n任务开始时间: {start_time.strftime('%Y-%m-%d %H:%M:%S')}")
119
+ print(f"任务结束时间: {end_time.strftime('%Y-%m-%d %H:%M:%S')}")
120
+ print(f"总用时: {total_time}")
116
121
  raise Exception(f"The request body is too long, please try again.")
117
122
  if "任务已完成" == next_instruction.strip():
118
123
  break
@@ -247,6 +252,11 @@ async def worker_gen(goal, tools, work_dir, cache_messages=None):
247
252
  if "fetch_gpt_response_stream HTTP Error', 'status_code': 404" in next_instruction:
248
253
  raise Exception(f"Model: {instruction_agent_config['engine']} not found!")
249
254
  if "'status_code': 413" in next_instruction:
255
+ end_time = datetime.now()
256
+ total_time = end_time - start_time
257
+ print(f"\n任务开始时间: {start_time.strftime('%Y-%m-%d %H:%M:%S')}")
258
+ print(f"任务结束时间: {end_time.strftime('%Y-%m-%d %H:%M:%S')}")
259
+ print(f"总用时: {total_time}")
250
260
  raise Exception(f"The request body is too long, please try again.")
251
261
  if "任务已完成" == next_instruction.strip():
252
262
  break
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: beswarm
3
- Version: 0.1.82
3
+ Version: 0.1.83
4
4
  Summary: MAS
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -128,8 +128,8 @@ beswarm/tools/screenshot.py,sha256=u6t8FCgW5YHJ_Oc4coo8e0F3wTusWE_-H8dFh1rBq9Q,1
128
128
  beswarm/tools/search_arxiv.py,sha256=GpuIOYX8T0iRC-X-hmuR9AUJVn15WWZq864DaoC7BUc,8004
129
129
  beswarm/tools/search_web.py,sha256=B24amOnGHnmdV_6S8bw8O2PdhZRRIDtJjg-wXcfP7dQ,11859
130
130
  beswarm/tools/think.py,sha256=WLw-7jNIsnS6n8MMSYUin_f-BGLENFmnKM2LISEp0co,1760
131
- beswarm/tools/worker.py,sha256=r3QaarqUMw9EK1koUjvLXoDt9AIEwfxgPij7khSI_vA,13847
132
- beswarm-0.1.82.dist-info/METADATA,sha256=LmrIY6UJRO9aA0seoisEs1blgjg6pucyTnW_FJTJneQ,3553
133
- beswarm-0.1.82.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
134
- beswarm-0.1.82.dist-info/top_level.txt,sha256=pJw4O87wvt5882smuSO6DfByJz7FJ8SxxT8h9fHCmpo,8
135
- beswarm-0.1.82.dist-info/RECORD,,
131
+ beswarm/tools/worker.py,sha256=6wM7apb6UM52sRC-XRO9KZdzO77xhyvChoxzXVKBjXA,14489
132
+ beswarm-0.1.83.dist-info/METADATA,sha256=JtYQPVlR9VHboPafiHeQvcvQKcNAOVrOuW2iJnmNo7A,3553
133
+ beswarm-0.1.83.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
134
+ beswarm-0.1.83.dist-info/top_level.txt,sha256=pJw4O87wvt5882smuSO6DfByJz7FJ8SxxT8h9fHCmpo,8
135
+ beswarm-0.1.83.dist-info/RECORD,,