beswarm 0.2.30__py3-none-any.whl → 0.2.32__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.

Potentially problematic release.


This version of beswarm might be problematic. Click here for more details.

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.48",
7
+ version="1.1.49",
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",
@@ -161,6 +161,14 @@ Examples:
161
161
  # 捕获在此块中可能发生的其他错误,例如未被早期检查捕获的文件读取问题
162
162
  return f"<tool_error>处理通用文件 '{file_path}' 时发生错误: {e}</tool_error>"
163
163
 
164
+ if file_path.lower().endswith('.csv'):
165
+ lines = text_content.splitlines(True)
166
+ if len(lines) > 500:
167
+ top_lines = lines[:250]
168
+ bottom_lines = lines[-250:]
169
+ omitted_count = len(lines) - 500
170
+ text_content = "".join(top_lines) + f"\n... (中间省略了 {omitted_count} 行) ...\n" + "".join(bottom_lines)
171
+
164
172
  # 返回文件内容
165
173
  return text_content
166
174
 
@@ -364,7 +364,7 @@ if __name__ == '__main__':
364
364
  # search_query = "美国"
365
365
  # search_query = "machine learning models for higher heating value prediction using proximate vs ultimate analysis"
366
366
  # search_query = "patent driver cognitive load monitoring micro-expression thermal imaging fusion"
367
- search_query = "lithium-ion battery remaining useful life prediction machine learning"
367
+ search_query = "Self-supervised learning for seismology"
368
368
  print(f"Performing web search for: '{search_query}'")
369
369
  results = await search_web(search_query) # results is a list of URLs
370
370
 
beswarm/tools/worker.py CHANGED
@@ -169,7 +169,8 @@ async def worker(goal, tools, work_dir, cache_messages=None):
169
169
  print("\n🤖 指令智能体生成的下一步指令:", next_instruction)
170
170
  if "fetch_gpt_response_stream HTTP Error', 'status_code': 404" in next_instruction:
171
171
  raise Exception(f"Model: {instruction_agent_config['engine']} not found!")
172
- if "'status_code': 413" in next_instruction:
172
+ if "'status_code': 413" in next_instruction or \
173
+ "'status_code': 400" in next_instruction:
173
174
  end_time = datetime.now()
174
175
  total_time = end_time - start_time
175
176
  print(f"\n任务开始时间: {start_time.strftime('%Y-%m-%d %H:%M:%S')}")
@@ -378,7 +379,8 @@ async def worker_gen(goal, tools, work_dir, cache_messages=None):
378
379
  print("\n🤖 指令智能体生成的下一步指令:", next_instruction)
379
380
  if "fetch_gpt_response_stream HTTP Error', 'status_code': 404" in next_instruction:
380
381
  raise Exception(f"Model: {instruction_agent_config['engine']} not found!")
381
- if "'status_code': 413" in next_instruction:
382
+ if "'status_code': 413" in next_instruction or \
383
+ "'status_code': 400" in next_instruction:
382
384
  end_time = datetime.now()
383
385
  total_time = end_time - start_time
384
386
  print(f"\n任务开始时间: {start_time.strftime('%Y-%m-%d %H:%M:%S')}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: beswarm
3
- Version: 0.2.30
3
+ Version: 0.2.32
4
4
  Summary: MAS
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -2,7 +2,7 @@ beswarm/__init__.py,sha256=HZjUOJtZR5QhMuDbq-wukQQn1VrBusNWai_ysGo-VVI,20
2
2
  beswarm/prompt.py,sha256=5JMfOuXWHscsaeDzwBn223mj9N85eAQdOHXQZk7zeWE,32238
3
3
  beswarm/utils.py,sha256=xxbNifOPlfcVkKmF_qFzuEnZgF3MQg3mnOfz1EF0Qss,6697
4
4
  beswarm/aient/main.py,sha256=SiYAIgQlLJqYusnTVEJOx1WNkSJKMImhgn5aWjfroxg,3814
5
- beswarm/aient/setup.py,sha256=_e0YH917y7yY1zW87YGgOuTrDGvx8zE1gSxnUswn4nQ,487
5
+ beswarm/aient/setup.py,sha256=6ISxC2o5gga4VEcbWm8MMAmzPvTEM5igOGY2s64ekI0,487
6
6
  beswarm/aient/src/aient/__init__.py,sha256=SRfF7oDVlOOAi6nGKiJIUK6B_arqYLO9iSMp-2IZZps,21
7
7
  beswarm/aient/src/aient/core/__init__.py,sha256=NxjebTlku35S4Dzr16rdSqSTWUvvwEeACe8KvHJnjPg,34
8
8
  beswarm/aient/src/aient/core/log_config.py,sha256=kz2_yJv1p-o3lUQOwA3qh-LSc3wMHv13iCQclw44W9c,274
@@ -30,7 +30,7 @@ beswarm/aient/src/aient/plugins/excute_command.py,sha256=EQe-vSlTrdd5I0reLqkSXqn
30
30
  beswarm/aient/src/aient/plugins/get_time.py,sha256=Ih5XIW5SDAIhrZ9W4Qe5Hs1k4ieKPUc_LAd6ySNyqZk,654
31
31
  beswarm/aient/src/aient/plugins/image.py,sha256=ZElCIaZznE06TN9xW3DrSukS7U3A5_cjk1Jge4NzPxw,2072
32
32
  beswarm/aient/src/aient/plugins/list_directory.py,sha256=V_uKkLx_fQDL5z__bSDC-PqAP-o32KmQW6Pdhx0Fx0s,1433
33
- beswarm/aient/src/aient/plugins/read_file.py,sha256=Lv03AW-gWGzM2esos2vLTXHcceczdTqEO7_vqFT4yoY,8302
33
+ beswarm/aient/src/aient/plugins/read_file.py,sha256=ifG9J499oHqm7wXqGb2ye7YTYHFtwB1Mf4JYyWae7ig,8695
34
34
  beswarm/aient/src/aient/plugins/read_image.py,sha256=4FbIiMNVFUQpNyiH5ApGSRvOD9ujcXGyuqlGTJMd7ac,4017
35
35
  beswarm/aient/src/aient/plugins/readonly.py,sha256=qK5-kBM3NDH1b-otFxFHpAjV5BXEY_e7cTWBcpP7G5k,710
36
36
  beswarm/aient/src/aient/plugins/registry.py,sha256=YknzhieU_8nQ3oKlUSSWDB4X7t2Jx0JnqT2Jd9Xsvfk,3574
@@ -134,10 +134,10 @@ beswarm/tools/repomap.py,sha256=YsTPq5MXfn_Ds5begcvHDnY_Xp2d4jH-xmWqNMHnNHY,4523
134
134
  beswarm/tools/request_input.py,sha256=gXNAJPOJektMqxJVyzNTFOeMQ7xUkO-wWMYH-r2Rdwk,942
135
135
  beswarm/tools/screenshot.py,sha256=u6t8FCgW5YHJ_Oc4coo8e0F3wTusWE_-H8dFh1rBq9Q,1011
136
136
  beswarm/tools/search_arxiv.py,sha256=caVIUOzMhFu-r_gVgJZrH2EO9xI5iV_qLAg0b3Ie9Xg,8095
137
- beswarm/tools/search_web.py,sha256=iyWe7HoayLRHh_iX2_rPG2a-wsNK7UoBlKx79v9AfJM,16225
137
+ beswarm/tools/search_web.py,sha256=ybbdbJq80plooXLMiyjAMOSCEyZJ0hquGUpabBhfFx0,16195
138
138
  beswarm/tools/taskmanager.py,sha256=rVLB0xwteT-5y9svmJ68K65U3JuX9BJGvqNzyxPvjaI,12178
139
- beswarm/tools/worker.py,sha256=JZAdsH-wKc-GfYXK95g-9bwzuDqgsXd4T_ple14Cjhc,23423
140
- beswarm-0.2.30.dist-info/METADATA,sha256=SVV0YIcqydD_PJmvxtVgTQsHBp5Ikz5T-qzCrn7Ld4M,3847
141
- beswarm-0.2.30.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
142
- beswarm-0.2.30.dist-info/top_level.txt,sha256=pJw4O87wvt5882smuSO6DfByJz7FJ8SxxT8h9fHCmpo,8
143
- beswarm-0.2.30.dist-info/RECORD,,
139
+ beswarm/tools/worker.py,sha256=s6tN4JhA07qzTlP7xWiB0MjnBIJ6XSrtlJTA_RqG1_A,23539
140
+ beswarm-0.2.32.dist-info/METADATA,sha256=DGsrqStEuzb_l0WqyPlwA0xd6aziMKtShM1YmkpC6pQ,3847
141
+ beswarm-0.2.32.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
142
+ beswarm-0.2.32.dist-info/top_level.txt,sha256=pJw4O87wvt5882smuSO6DfByJz7FJ8SxxT8h9fHCmpo,8
143
+ beswarm-0.2.32.dist-info/RECORD,,