beswarm 0.1.67__py3-none-any.whl → 0.1.68__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,8 @@ async def worker(goal, tools, work_dir, cache_messages=None):
113
113
  raise Exception(f"Model: {instruction_agent_config['engine']} not found!")
114
114
  if "'status_code': 413" in next_instruction:
115
115
  raise Exception(f"The request body is too long, please try again.")
116
+ if "任务已完成" == next_instruction.strip():
117
+ break
116
118
  next_instruction = extract_xml_content(next_instruction, "instructions")
117
119
  if not next_instruction:
118
120
  print("\n❌ 指令智能体生成的指令不符合要求,请重新生成。")
@@ -237,6 +239,8 @@ async def worker_gen(goal, tools, work_dir, cache_messages=None):
237
239
  raise Exception(f"Model: {instruction_agent_config['engine']} not found!")
238
240
  if "'status_code': 413" in next_instruction:
239
241
  raise Exception(f"The request body is too long, please try again.")
242
+ if "任务已完成" == next_instruction.strip():
243
+ break
240
244
  next_instruction = extract_xml_content(next_instruction, "instructions")
241
245
  if not next_instruction:
242
246
  print("\n❌ 指令智能体生成的指令不符合要求,请重新生成。")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: beswarm
3
- Version: 0.1.67
3
+ Version: 0.1.68
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=9slwBemXjEqrd7-YgVmyMijPXlkhZCybEDRVhWVQ9B0,7937
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=bZwMGUS4wt4yOleb2kKu0rCLHIJgPcokbCmh9bGMzXA,12679
132
- beswarm-0.1.67.dist-info/METADATA,sha256=lm26XFI_-H6ZZXdvtAcGBKA2J8cBZZJ_feKSvoscGGk,3553
133
- beswarm-0.1.67.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
134
- beswarm-0.1.67.dist-info/top_level.txt,sha256=pJw4O87wvt5882smuSO6DfByJz7FJ8SxxT8h9fHCmpo,8
135
- beswarm-0.1.67.dist-info/RECORD,,
131
+ beswarm/tools/worker.py,sha256=qu6Bchk1CmAudNzJSKLQGjInXNAWMOd_tkM6rDUh7qg,12847
132
+ beswarm-0.1.68.dist-info/METADATA,sha256=2KbalF-OUeHWSIUGTPsX1y06Da2Jcm6yonrRxHG-TyI,3553
133
+ beswarm-0.1.68.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
134
+ beswarm-0.1.68.dist-info/top_level.txt,sha256=pJw4O87wvt5882smuSO6DfByJz7FJ8SxxT8h9fHCmpo,8
135
+ beswarm-0.1.68.dist-info/RECORD,,