beswarm 0.1.66__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/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.19",
7
+ version="1.1.20",
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",
@@ -91,6 +91,8 @@ class RequestModel(BaseRequest):
91
91
  include_usage: Optional[bool] = None
92
92
  temperature: Optional[float] = 0.5
93
93
  top_p: Optional[float] = 1.0
94
+ top_k: Optional[int] = None
95
+ min_p: Optional[float] = None
94
96
  max_tokens: Optional[int] = None
95
97
  max_completion_tokens: Optional[int] = None
96
98
  presence_penalty: Optional[float] = 0.0
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.66
3
+ Version: 0.1.68
4
4
  Summary: MAS
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -1,11 +1,11 @@
1
1
  beswarm/__init__.py,sha256=HZjUOJtZR5QhMuDbq-wukQQn1VrBusNWai_ysGo-VVI,20
2
2
  beswarm/utils.py,sha256=Z2Kuus2BLp9EHUC2ZNL9iUsb6NWnPj-MTA7SYzGyg24,1755
3
3
  beswarm/aient/main.py,sha256=SiYAIgQlLJqYusnTVEJOx1WNkSJKMImhgn5aWjfroxg,3814
4
- beswarm/aient/setup.py,sha256=I9hZR__BG1kFGAzLuA1xI53W0hbWOB-iRslbHO9wZuU,487
4
+ beswarm/aient/setup.py,sha256=jQ5DUcJ18TvQ4Dn8B4Q-ATQKYCxTdIqgBDZAhUAL3ak,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
8
- beswarm/aient/src/aient/core/models.py,sha256=kF-HLi1I2k_G5r153ZHuiGH8_NmpTlFMfK0_myB28YQ,7366
8
+ beswarm/aient/src/aient/core/models.py,sha256=g6rUcNwSTHwmBzt1epsu_2Re8YRFKVCSXRUIFJZpAb4,7432
9
9
  beswarm/aient/src/aient/core/request.py,sha256=qKj_w9UpXZePCGhhMuE-rX7rCPUdCx8GJ-HUXiurBho,66589
10
10
  beswarm/aient/src/aient/core/response.py,sha256=YphzhA9jtQKzWb3L4XGTp9xJZ2FOzHr1aAMTsi896FQ,33201
11
11
  beswarm/aient/src/aient/core/utils.py,sha256=zidsBUBd3KskzcxQcPB1y5x1RhtWcbZeWvmgb4LAadA,27318
@@ -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.66.dist-info/METADATA,sha256=u1H0kHybNKYYajE6OJxivCH1-E1i-Izep8iz5Kt7M9A,3553
133
- beswarm-0.1.66.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
134
- beswarm-0.1.66.dist-info/top_level.txt,sha256=pJw4O87wvt5882smuSO6DfByJz7FJ8SxxT8h9fHCmpo,8
135
- beswarm-0.1.66.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,,