beswarm 0.2.72__py3-none-any.whl → 0.2.73__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/subtasks.py CHANGED
@@ -36,11 +36,14 @@ def create_task(goal, tools, work_dir):
36
36
  }
37
37
  ]
38
38
 
39
+ if work_dir == str(task_manager.root_path):
40
+ return f"<tool_error>子任务的工作目录位置在主任务的工作目录的子目录。子任务工作目录**禁止**设置为主任务目录本身。请重新创建子任务。当前主任务工作目录:{task_manager.root_path}</tool_error>"
41
+
39
42
  # 调用新的批量创建接口
40
43
  task_ids = task_manager.create_tasks_batch(worker_fun, tasks_params)
41
44
 
42
45
  # 返回新创建的单个任务ID
43
- return f"子任务已提交到队列,ID: {task_ids[0]}" if task_ids else "任务提交失败"
46
+ return f"子任务已提交到队列,ID: {task_ids[0]}" if task_ids else "<tool_error>任务提交失败</tool_error>"
44
47
 
45
48
  @register_tool()
46
49
  def resume_task(task_id, goal):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: beswarm
3
- Version: 0.2.72
3
+ Version: 0.2.73
4
4
  Summary: MAS
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -113,10 +113,10 @@ beswarm/tools/request_input.py,sha256=3n2UW8m8Q7dxGhd7L7hzSJ1kk4ekMbtdtNZZT3dJf2
113
113
  beswarm/tools/screenshot.py,sha256=hyL6F8_k9Y03Nb_X18cY-klCpWWdkqyC-iGXfKX-7jc,1007
114
114
  beswarm/tools/search_arxiv.py,sha256=NLiJV1B7Um6EuZXLxnL950d837_he2LGG7qaGACSgwg,10750
115
115
  beswarm/tools/search_web.py,sha256=NYrb5KL_WUGPm-fOKT8Cyjon04lxBU-gaLdrVjeYgGo,16143
116
- beswarm/tools/subtasks.py,sha256=mIjA2QrRy9Fos4rYm8fCfu2QrsE_MGnQI9IR8dOxsGs,9885
116
+ beswarm/tools/subtasks.py,sha256=OclAorPuuG9vnySoBN2ISzzoInZJV3wmLAVzdMF3FXM,10220
117
117
  beswarm/tools/worker.py,sha256=_cSkRUKRJMAiZiTfnBze_e9Kc7k7KvbB5hdxdvp4FW4,2009
118
118
  beswarm/tools/write_csv.py,sha256=u0Hq18Ksfheb52MVtyLNCnSDHibITpsYBPs2ub7USYA,1466
119
- beswarm-0.2.72.dist-info/METADATA,sha256=7TBPrR6jMujfAniWaq7LeW7p6NC77I14pWFEcRycl4U,3878
120
- beswarm-0.2.72.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
121
- beswarm-0.2.72.dist-info/top_level.txt,sha256=pJw4O87wvt5882smuSO6DfByJz7FJ8SxxT8h9fHCmpo,8
122
- beswarm-0.2.72.dist-info/RECORD,,
119
+ beswarm-0.2.73.dist-info/METADATA,sha256=q8cz5kShz6_VtPRJ3EiJSMluPqWrNhl02Xvb8y_JOCY,3878
120
+ beswarm-0.2.73.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
121
+ beswarm-0.2.73.dist-info/top_level.txt,sha256=pJw4O87wvt5882smuSO6DfByJz7FJ8SxxT8h9fHCmpo,8
122
+ beswarm-0.2.73.dist-info/RECORD,,