beswarm 0.1.46__py3-none-any.whl → 0.1.47__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 +1 -1
- beswarm/aient/src/aient/core/request.py +1 -4
- beswarm/tools/edit_file.py +2 -4
- {beswarm-0.1.46.dist-info → beswarm-0.1.47.dist-info}/METADATA +1 -1
- {beswarm-0.1.46.dist-info → beswarm-0.1.47.dist-info}/RECORD +7 -7
- {beswarm-0.1.46.dist-info → beswarm-0.1.47.dist-info}/WHEEL +0 -0
- {beswarm-0.1.46.dist-info → beswarm-0.1.47.dist-info}/top_level.txt +0 -0
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.
|
7
|
+
version="1.1.3",
|
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",
|
@@ -459,10 +459,7 @@ async def get_vertex_gemini_payload(request, engine, provider, api_key=None):
|
|
459
459
|
payload["generationConfig"]["max_output_tokens"] = 8192
|
460
460
|
|
461
461
|
if request.model.endswith("-search"):
|
462
|
-
|
463
|
-
payload["tools"] = [search_tool]
|
464
|
-
else:
|
465
|
-
payload["tools"].append(search_tool)
|
462
|
+
payload["tools"] = [search_tool]
|
466
463
|
|
467
464
|
return url, headers, payload
|
468
465
|
|
beswarm/tools/edit_file.py
CHANGED
@@ -5,10 +5,10 @@ from ..aient.src.aient.plugins import register_tool
|
|
5
5
|
@register_tool()
|
6
6
|
def edit_file(file_path, diff_content, match_precision=0.8):
|
7
7
|
"""
|
8
|
-
使用diff模式编辑代码文件,支持Git的diff
|
8
|
+
使用diff模式编辑代码文件,支持Git的diff格式,每次修改一处。
|
9
9
|
你应该清楚地表明编辑内容,同时最小化你写的未更改代码。
|
10
10
|
你仍应倾向于尽可能少地重复原始文件的行来传达更改。
|
11
|
-
|
11
|
+
但是,编辑应包含足够的未更改行上下文,以消除你正在编辑的代码的歧义。
|
12
12
|
|
13
13
|
参数:
|
14
14
|
file_path: 要编辑的文件路径
|
@@ -18,8 +18,6 @@ def edit_file(file_path, diff_content, match_precision=0.8):
|
|
18
18
|
=======
|
19
19
|
替换代码
|
20
20
|
>>>>>>> REPLACE
|
21
|
-
|
22
|
-
可以包含多个这样的块进行多处编辑
|
23
21
|
match_precision: 匹配精度 (0.0-1.0),值越高要求匹配越精确,默认0.8
|
24
22
|
|
25
23
|
返回:
|
@@ -1,12 +1,12 @@
|
|
1
1
|
beswarm/__init__.py,sha256=HZjUOJtZR5QhMuDbq-wukQQn1VrBusNWai_ysGo-VVI,20
|
2
2
|
beswarm/utils.py,sha256=AdDCcqAIIKQEMl7PfryVgeT9G5sHe7QNsZnrvmTGA8E,283
|
3
3
|
beswarm/aient/main.py,sha256=SiYAIgQlLJqYusnTVEJOx1WNkSJKMImhgn5aWjfroxg,3814
|
4
|
-
beswarm/aient/setup.py,sha256=
|
4
|
+
beswarm/aient/setup.py,sha256=NJlbMiPzpN7Yg5piFbPJCvyIEB99loo-mNI7FG0Kxaw,486
|
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
8
|
beswarm/aient/src/aient/core/models.py,sha256=_1wYZg_n9kb2A3C8xCboyqleH2iHc9scwOvtx9DPeok,7582
|
9
|
-
beswarm/aient/src/aient/core/request.py,sha256=
|
9
|
+
beswarm/aient/src/aient/core/request.py,sha256=8ghtI3gU7QMiw1voINWZ-PMsHu4IYjV6ncO6a9Qe9sI,61551
|
10
10
|
beswarm/aient/src/aient/core/response.py,sha256=rJnt4tOyJXF2pT9_4VdU7aG3Ac-k2MiCAp9nANVyFqI,31505
|
11
11
|
beswarm/aient/src/aient/core/utils.py,sha256=CAFqWzICaKVysH9GLHBcp-VeOShisLjWGhEsh6-beWo,26365
|
12
12
|
beswarm/aient/src/aient/core/test/test_base_api.py,sha256=pWnycRJbuPSXKKU9AQjWrMAX1wiLC_014Qc9hh5C2Pw,524
|
@@ -121,13 +121,13 @@ beswarm/queries/tree-sitter-languages/typescript-tags.scm,sha256=OMdCeedPiA24ky8
|
|
121
121
|
beswarm/tools/UIworker.py,sha256=YRrzW5GxWqA-tcmmm2c6mMbkVI0kHIqosIUz-GcoQOQ,6339
|
122
122
|
beswarm/tools/__init__.py,sha256=-h_zoMEjnLCg9iVgSoor9BI3yK64LdVOQkVB0DgGFmo,1001
|
123
123
|
beswarm/tools/click.py,sha256=TygaekCXTmU3fIu6Uom7ZcyzEgYMlCC_GX-5SmWHuLI,20762
|
124
|
-
beswarm/tools/edit_file.py,sha256=
|
124
|
+
beswarm/tools/edit_file.py,sha256=hfpLaE4ekDiAya0Le0fJuYa-xUefWHLTxc3F6zGZd7M,6912
|
125
125
|
beswarm/tools/planner.py,sha256=lguBCS6kpwNPoXQvqH-WySabVubT82iyWOkJnjt6dXw,1265
|
126
126
|
beswarm/tools/repomap.py,sha256=CwvwoN5Swr42EzrORTTeV8MMb7mPviy4a4b0fxBu50k,40828
|
127
127
|
beswarm/tools/search_arxiv.py,sha256=9slwBemXjEqrd7-YgVmyMijPXlkhZCybEDRVhWVQ9B0,7937
|
128
128
|
beswarm/tools/think.py,sha256=WLw-7jNIsnS6n8MMSYUin_f-BGLENFmnKM2LISEp0co,1760
|
129
129
|
beswarm/tools/worker.py,sha256=FfKCx7KFNbMRoAXtjU1_nJQjx9WHny7KBq8OXSYICJs,5334
|
130
|
-
beswarm-0.1.
|
131
|
-
beswarm-0.1.
|
132
|
-
beswarm-0.1.
|
133
|
-
beswarm-0.1.
|
130
|
+
beswarm-0.1.47.dist-info/METADATA,sha256=64mPpufMQxOi-M1jIsx-d748jCRBK7XPIo3tC6V7JBA,3537
|
131
|
+
beswarm-0.1.47.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
132
|
+
beswarm-0.1.47.dist-info/top_level.txt,sha256=pJw4O87wvt5882smuSO6DfByJz7FJ8SxxT8h9fHCmpo,8
|
133
|
+
beswarm-0.1.47.dist-info/RECORD,,
|
File without changes
|
File without changes
|