beswarm 0.2.10__py3-none-any.whl → 0.2.11__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 +2 -2
- {beswarm-0.2.10.dist-info → beswarm-0.2.11.dist-info}/METADATA +1 -1
- {beswarm-0.2.10.dist-info → beswarm-0.2.11.dist-info}/RECORD +5 -5
- {beswarm-0.2.10.dist-info → beswarm-0.2.11.dist-info}/WHEEL +0 -0
- {beswarm-0.2.10.dist-info → beswarm-0.2.11.dist-info}/top_level.txt +0 -0
beswarm/tools/worker.py
CHANGED
@@ -15,8 +15,6 @@ from ..bemcp.bemcp import MCPClient, convert_tool_format, MCPManager
|
|
15
15
|
|
16
16
|
manager = MCPManager()
|
17
17
|
|
18
|
-
DEBUG = os.getenv("DEBUG", "false").lower() in ("true", "1", "t", "yes")
|
19
|
-
|
20
18
|
@register_tool()
|
21
19
|
async def worker(goal, tools, work_dir, cache_messages=None):
|
22
20
|
"""
|
@@ -34,6 +32,7 @@ async def worker(goal, tools, work_dir, cache_messages=None):
|
|
34
32
|
Returns:
|
35
33
|
str: 当任务成功完成时,返回字符串 "任务已完成"。
|
36
34
|
"""
|
35
|
+
DEBUG = os.getenv("DEBUG", "false").lower() in ("true", "1", "t", "yes")
|
37
36
|
if DEBUG:
|
38
37
|
import sys
|
39
38
|
log_file = open(Path(work_dir) / ".beswarm" / "history.log", "a")
|
@@ -234,6 +233,7 @@ async def worker(goal, tools, work_dir, cache_messages=None):
|
|
234
233
|
return "任务已完成"
|
235
234
|
|
236
235
|
async def worker_gen(goal, tools, work_dir, cache_messages=None):
|
236
|
+
DEBUG = os.getenv("DEBUG", "false").lower() in ("true", "1", "t", "yes")
|
237
237
|
if DEBUG:
|
238
238
|
import sys
|
239
239
|
log_file = open(Path(work_dir) / ".beswarm" / "history.log", "a")
|
@@ -133,8 +133,8 @@ beswarm/tools/repomap.py,sha256=YsTPq5MXfn_Ds5begcvHDnY_Xp2d4jH-xmWqNMHnNHY,4523
|
|
133
133
|
beswarm/tools/screenshot.py,sha256=u6t8FCgW5YHJ_Oc4coo8e0F3wTusWE_-H8dFh1rBq9Q,1011
|
134
134
|
beswarm/tools/search_arxiv.py,sha256=GpuIOYX8T0iRC-X-hmuR9AUJVn15WWZq864DaoC7BUc,8004
|
135
135
|
beswarm/tools/search_web.py,sha256=w0T0aCqOVlb6Of5hn_TtpnrGXo6bMtw2aKZdkrYjycI,12069
|
136
|
-
beswarm/tools/worker.py,sha256=
|
137
|
-
beswarm-0.2.
|
138
|
-
beswarm-0.2.
|
139
|
-
beswarm-0.2.
|
140
|
-
beswarm-0.2.
|
136
|
+
beswarm/tools/worker.py,sha256=uUlaJ06Ys3iFVTAb9LEPd4XJ8HQ9tB1pyxUiy0wCe9o,22999
|
137
|
+
beswarm-0.2.11.dist-info/METADATA,sha256=H0Eik7sxiaKQ0FoPYeUMFaoeeKMLZ_-8Jy97NV3b9Vo,3847
|
138
|
+
beswarm-0.2.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
139
|
+
beswarm-0.2.11.dist-info/top_level.txt,sha256=pJw4O87wvt5882smuSO6DfByJz7FJ8SxxT8h9fHCmpo,8
|
140
|
+
beswarm-0.2.11.dist-info/RECORD,,
|
File without changes
|
File without changes
|