beswarm 0.1.69__py3-none-any.whl → 0.1.70__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
@@ -137,7 +137,7 @@ async def worker(goal, tools, work_dir, cache_messages=None):
137
137
  next_instruction = await instruction_agent_task()
138
138
 
139
139
  # 检查任务是否完成
140
- if "任务已完成" in next_instruction:
140
+ if "任务已完成" in next_instruction and len(next_instruction) < 10:
141
141
  print("\n✅ 任务已完成!")
142
142
  break
143
143
  if "find_and_click_element" in str(tools_json):
@@ -265,7 +265,7 @@ async def worker_gen(goal, tools, work_dir, cache_messages=None):
265
265
  yield {"user": next_instruction}
266
266
 
267
267
  # 检查任务是否完成
268
- if "任务已完成" in next_instruction:
268
+ if "任务已完成" in next_instruction and len(next_instruction) < 10:
269
269
  print("\n✅ 任务已完成!")
270
270
  break
271
271
  if "find_and_click_element" in str(tools_json):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: beswarm
3
- Version: 0.1.69
3
+ Version: 0.1.70
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=qu6Bchk1CmAudNzJSKLQGjInXNAWMOd_tkM6rDUh7qg,12847
132
- beswarm-0.1.69.dist-info/METADATA,sha256=xp1354j2oPHjCj_rqqxp2IDJ1VGfXXLGNZk5NO2xotA,3553
133
- beswarm-0.1.69.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
134
- beswarm-0.1.69.dist-info/top_level.txt,sha256=pJw4O87wvt5882smuSO6DfByJz7FJ8SxxT8h9fHCmpo,8
135
- beswarm-0.1.69.dist-info/RECORD,,
131
+ beswarm/tools/worker.py,sha256=DLYzMgKzpf4UYGNKKJix__DHw6LHtX_T9CLVaexDQMg,12909
132
+ beswarm-0.1.70.dist-info/METADATA,sha256=bP0bacAMHQsIyrQd73s3e-ldVJhZIO9Oxu6-5B_9L5w,3553
133
+ beswarm-0.1.70.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
134
+ beswarm-0.1.70.dist-info/top_level.txt,sha256=pJw4O87wvt5882smuSO6DfByJz7FJ8SxxT8h9fHCmpo,8
135
+ beswarm-0.1.70.dist-info/RECORD,,