beswarm 0.2.86__py3-none-any.whl → 0.2.88__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 +8 -0
- {beswarm-0.2.86.dist-info → beswarm-0.2.88.dist-info}/METADATA +1 -1
- {beswarm-0.2.86.dist-info → beswarm-0.2.88.dist-info}/RECORD +5 -5
- {beswarm-0.2.86.dist-info → beswarm-0.2.88.dist-info}/WHEEL +0 -0
- {beswarm-0.2.86.dist-info → beswarm-0.2.88.dist-info}/top_level.txt +0 -0
beswarm/tools/subtasks.py
CHANGED
@@ -24,6 +24,14 @@ def create_task(goal, tools, work_dir):
|
|
24
24
|
str: 当任务成功完成时,返回字符串 "任务已完成"。
|
25
25
|
"""
|
26
26
|
task_manager = current_task_manager.get()
|
27
|
+
|
28
|
+
# 检查工作目录是否与现有任务重复
|
29
|
+
for task_id, task_info in task_manager.tasks_cache.items():
|
30
|
+
if task_id == "root_path":
|
31
|
+
continue
|
32
|
+
if task_info.get("args", {}).get("work_dir") == work_dir:
|
33
|
+
return f"<tool_error>工作目录 '{work_dir}' 已被任务 {task_id} 使用。请为子任务重新选择一个唯一的工作目录。</tool_error>"
|
34
|
+
|
27
35
|
# 获取 worker 函数,这是正确的
|
28
36
|
worker_fun = registry.tools["worker"]
|
29
37
|
|
@@ -118,10 +118,10 @@ beswarm/tools/request_input.py,sha256=3n2UW8m8Q7dxGhd7L7hzSJ1kk4ekMbtdtNZZT3dJf2
|
|
118
118
|
beswarm/tools/screenshot.py,sha256=hyL6F8_k9Y03Nb_X18cY-klCpWWdkqyC-iGXfKX-7jc,1007
|
119
119
|
beswarm/tools/search_arxiv.py,sha256=NLiJV1B7Um6EuZXLxnL950d837_he2LGG7qaGACSgwg,10750
|
120
120
|
beswarm/tools/search_web.py,sha256=0fTeczXiOX_LJQGaLEGbuJtIPzofeuquGWEt3yDMtVw,17498
|
121
|
-
beswarm/tools/subtasks.py,sha256=
|
121
|
+
beswarm/tools/subtasks.py,sha256=5_-AFNlbZusxuvJ_tkvcvre-WzbPcHBa2ilqdPwQtYk,10895
|
122
122
|
beswarm/tools/worker.py,sha256=mQ1qdrQ8MgL99byAbTvxfEByFFGN9mty3UHqHjARMQ8,2331
|
123
123
|
beswarm/tools/write_csv.py,sha256=u0Hq18Ksfheb52MVtyLNCnSDHibITpsYBPs2ub7USYA,1466
|
124
|
-
beswarm-0.2.
|
125
|
-
beswarm-0.2.
|
126
|
-
beswarm-0.2.
|
127
|
-
beswarm-0.2.
|
124
|
+
beswarm-0.2.88.dist-info/METADATA,sha256=KO6mxCJ4kyKurbWjR2SIcKiGjak2jG22VH5cazMYuXY,3878
|
125
|
+
beswarm-0.2.88.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
126
|
+
beswarm-0.2.88.dist-info/top_level.txt,sha256=pJw4O87wvt5882smuSO6DfByJz7FJ8SxxT8h9fHCmpo,8
|
127
|
+
beswarm-0.2.88.dist-info/RECORD,,
|
File without changes
|
File without changes
|