beswarm 0.1.79__py3-none-any.whl → 0.1.81__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/aient/setup.py CHANGED
@@ -4,7 +4,7 @@ from setuptools import setup, find_packages
4
4
 
5
5
  setup(
6
6
  name="aient",
7
- version="1.1.29",
7
+ version="1.1.30",
8
8
  description="Aient: The Awakening of Agent.",
9
9
  long_description=Path.open(Path("README.md"), encoding="utf-8").read(),
10
10
  long_description_content_type="text/markdown",
@@ -16,9 +16,9 @@ async def get_tools_result_async(function_call_name, function_full_response, fun
16
16
  invalid_args = [arg_name for arg_name in call_args_name_list if arg_name not in required_args]
17
17
  if invalid_args:
18
18
  function_response = (
19
- "function_response:"
19
+ "function_response: "
20
20
  "<tool_error>"
21
- f"无效的参数: {invalid_args}"
21
+ f"无效的参数: {invalid_args} "
22
22
  f"{function_call_name} 只允许使用以下参数: {required_args}"
23
23
  "</tool_error>"
24
24
  )
beswarm/tools/worker.py CHANGED
@@ -27,6 +27,7 @@ async def worker(goal, tools, work_dir, cache_messages=None):
27
27
  Returns:
28
28
  str: 当任务成功完成时,返回字符串 "任务已完成"。
29
29
  """
30
+ start_time = datetime.now()
30
31
 
31
32
  tools_json = [value for _, value in get_function_call_list(tools).items()]
32
33
  work_agent_system_prompt = system_prompt.format(
@@ -152,9 +153,15 @@ async def worker(goal, tools, work_dir, cache_messages=None):
152
153
  print("✅ 工作智能体回复:", result)
153
154
  need_instruction = True
154
155
 
156
+ end_time = datetime.now()
157
+ total_time = end_time - start_time
158
+ print(f"\n任务开始时间: {start_time.strftime('%Y-%m-%d %H:%M:%S')}")
159
+ print(f"\n任务结束时间: {end_time.strftime('%Y-%m-%d %H:%M:%S')}")
160
+ print(f"总用时: {total_time}")
155
161
  return "任务已完成"
156
162
 
157
163
  async def worker_gen(goal, tools, work_dir, cache_messages=None):
164
+ start_time = datetime.now()
158
165
  tools_json = [value for _, value in get_function_call_list(tools).items()]
159
166
  work_agent_system_prompt = system_prompt.format(
160
167
  os_version=platform.platform(),
@@ -281,4 +288,10 @@ async def worker_gen(goal, tools, work_dir, cache_messages=None):
281
288
  continue
282
289
  yield {"assistant": result}
283
290
  print("✅ 工作智能体回复:", result)
284
- need_instruction = True
291
+ need_instruction = True
292
+
293
+ end_time = datetime.now()
294
+ total_time = end_time - start_time
295
+ print(f"\n任务开始时间: {start_time.strftime('%Y-%m-%d %H:%M:%S')}")
296
+ print(f"\n任务结束时间: {end_time.strftime('%Y-%m-%d %H:%M:%S')}")
297
+ print(f"总用时: {total_time}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: beswarm
3
- Version: 0.1.79
3
+ Version: 0.1.81
4
4
  Summary: MAS
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -1,7 +1,7 @@
1
1
  beswarm/__init__.py,sha256=HZjUOJtZR5QhMuDbq-wukQQn1VrBusNWai_ysGo-VVI,20
2
2
  beswarm/utils.py,sha256=YBuoJC240LNKTTCvkoZjohylT71PM6QZLpZofXWLaJ0,1895
3
3
  beswarm/aient/main.py,sha256=SiYAIgQlLJqYusnTVEJOx1WNkSJKMImhgn5aWjfroxg,3814
4
- beswarm/aient/setup.py,sha256=3iLj-Gp-bPw5cwDkGd6Pn3PZTcRfdhfuN8eruJ9czkQ,487
4
+ beswarm/aient/setup.py,sha256=JOpHzSrDIRNFL3Bq4eRHzZRMsUsAOiPg_zBg65UiJbE,487
5
5
  beswarm/aient/src/aient/__init__.py,sha256=SRfF7oDVlOOAi6nGKiJIUK6B_arqYLO9iSMp-2IZZps,21
6
6
  beswarm/aient/src/aient/core/__init__.py,sha256=NxjebTlku35S4Dzr16rdSqSTWUvvwEeACe8KvHJnjPg,34
7
7
  beswarm/aient/src/aient/core/log_config.py,sha256=kz2_yJv1p-o3lUQOwA3qh-LSc3wMHv13iCQclw44W9c,274
@@ -24,7 +24,7 @@ beswarm/aient/src/aient/models/groq.py,sha256=eXfSOaPxgQEtk4U8qseArN8rFYOFBfMsPw
24
24
  beswarm/aient/src/aient/models/vertex.py,sha256=qVD5l1Q538xXUPulxG4nmDjXE1VoV4yuAkTCpIeJVw0,16795
25
25
  beswarm/aient/src/aient/plugins/__init__.py,sha256=p3KO6Aa3Lupos4i2SjzLQw1hzQTigOAfEHngsldrsyk,986
26
26
  beswarm/aient/src/aient/plugins/arXiv.py,sha256=yHjb6PS3GUWazpOYRMKMzghKJlxnZ5TX8z9F6UtUVow,1461
27
- beswarm/aient/src/aient/plugins/config.py,sha256=QGyI9LlNaU36GUpY531o7UbTFBB39u7LfS6rrx_RTWw,7103
27
+ beswarm/aient/src/aient/plugins/config.py,sha256=2DXH-LP9KGl_P4467chJu3q4AAbX5nSn4DIkdI0aYH8,7105
28
28
  beswarm/aient/src/aient/plugins/excute_command.py,sha256=XEGg1AX8U8iUBaHBqoCmZHLCpI_wQiDSmHDFvqG6ONE,10243
29
29
  beswarm/aient/src/aient/plugins/get_time.py,sha256=Ih5XIW5SDAIhrZ9W4Qe5Hs1k4ieKPUc_LAd6ySNyqZk,654
30
30
  beswarm/aient/src/aient/plugins/image.py,sha256=ZElCIaZznE06TN9xW3DrSukS7U3A5_cjk1Jge4NzPxw,2072
@@ -129,8 +129,8 @@ beswarm/tools/screenshot.py,sha256=u6t8FCgW5YHJ_Oc4coo8e0F3wTusWE_-H8dFh1rBq9Q,1
129
129
  beswarm/tools/search_arxiv.py,sha256=GpuIOYX8T0iRC-X-hmuR9AUJVn15WWZq864DaoC7BUc,8004
130
130
  beswarm/tools/search_web.py,sha256=B24amOnGHnmdV_6S8bw8O2PdhZRRIDtJjg-wXcfP7dQ,11859
131
131
  beswarm/tools/think.py,sha256=WLw-7jNIsnS6n8MMSYUin_f-BGLENFmnKM2LISEp0co,1760
132
- beswarm/tools/worker.py,sha256=RXR4cuq0klK6psrFRJZXgQGxvRMlpMu6Vxw6a5bqZo0,13255
133
- beswarm-0.1.79.dist-info/METADATA,sha256=J4LEplpa8yWtvQeeShx_Xk98moNg5dldc9ma8azoW9A,3553
134
- beswarm-0.1.79.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
135
- beswarm-0.1.79.dist-info/top_level.txt,sha256=pJw4O87wvt5882smuSO6DfByJz7FJ8SxxT8h9fHCmpo,8
136
- beswarm-0.1.79.dist-info/RECORD,,
132
+ beswarm/tools/worker.py,sha256=dhhr17Uarq6fyqV4m2DLpv-xj4Vy3pT3XcB3i7ztQFo,13846
133
+ beswarm-0.1.81.dist-info/METADATA,sha256=mTfVDC4hBNnacdlmGnL4cLWuijjlq2VV9Nqh3thg4jQ,3553
134
+ beswarm-0.1.81.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
135
+ beswarm-0.1.81.dist-info/top_level.txt,sha256=pJw4O87wvt5882smuSO6DfByJz7FJ8SxxT8h9fHCmpo,8
136
+ beswarm-0.1.81.dist-info/RECORD,,