beswarm 0.1.15__py3-none-any.whl → 0.1.16__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 -1
- beswarm/tools/repomap.py +4 -1
- {beswarm-0.1.15.dist-info → beswarm-0.1.16.dist-info}/METADATA +34 -1
- {beswarm-0.1.15.dist-info → beswarm-0.1.16.dist-info}/RECORD +7 -7
- {beswarm-0.1.15.dist-info → beswarm-0.1.16.dist-info}/WHEEL +0 -0
- {beswarm-0.1.15.dist-info → beswarm-0.1.16.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.0.
|
7
|
+
version="1.0.76",
|
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",
|
@@ -300,7 +300,7 @@ async def get_vertex_gemini_payload(request, engine, provider, api_key=None):
|
|
300
300
|
original_model = model_dict[request.model]
|
301
301
|
search_tool = None
|
302
302
|
|
303
|
-
pro_models = ["gemini-2.5
|
303
|
+
pro_models = ["gemini-2.5", "gemini-2.0", "gemini-exp"]
|
304
304
|
if any(pro_model in original_model for pro_model in pro_models):
|
305
305
|
location = gemini2
|
306
306
|
search_tool = {"googleSearch": {}}
|
beswarm/tools/repomap.py
CHANGED
@@ -1286,4 +1286,7 @@ if __name__ == "__main__":
|
|
1286
1286
|
|
1287
1287
|
# print(get_code_repo_map("."))
|
1288
1288
|
# print(get_code_repo_map("/Users/yanyuming/Downloads/GitHub/uni-api"))
|
1289
|
-
print(get_code_repo_map("/Users/yanyuming/Downloads/GitHub/text-to-motion"))
|
1289
|
+
# print(get_code_repo_map("/Users/yanyuming/Downloads/GitHub/text-to-motion"))
|
1290
|
+
print(get_code_repo_map("/Users/yanyuming/Downloads/GitHub/beswarm/work/secretary/secretary"))
|
1291
|
+
|
1292
|
+
# python -m beswarm.tools.repomap
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: beswarm
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.16
|
4
4
|
Summary: MAS
|
5
5
|
Requires-Python: >=3.11
|
6
6
|
Description-Content-Type: text/markdown
|
@@ -68,3 +68,36 @@ cd ~/Downloads/GitHub/beswarm && docker run --rm \
|
|
68
68
|
-v ./work:/app/work beswarm \
|
69
69
|
--goal "分析这个仓库 https://github.com/cloneofsimo/minRF"
|
70
70
|
```
|
71
|
+
|
72
|
+
main.py
|
73
|
+
|
74
|
+
```python
|
75
|
+
import os
|
76
|
+
import asyncio
|
77
|
+
import nest_asyncio
|
78
|
+
nest_asyncio.apply()
|
79
|
+
|
80
|
+
from beswarm.tools import (
|
81
|
+
worker,
|
82
|
+
get_code_repo_map,
|
83
|
+
search_arxiv,
|
84
|
+
read_file,
|
85
|
+
list_directory,
|
86
|
+
excute_command,
|
87
|
+
write_to_file,
|
88
|
+
download_read_arxiv_pdf,
|
89
|
+
)
|
90
|
+
|
91
|
+
os.environ['API_KEY'] = ''
|
92
|
+
os.environ['BASE_URL'] = 'https://api.xxx.xyz/v1/chat/completions'
|
93
|
+
os.environ['MODEL'] = 'gemini-2.5-pro'
|
94
|
+
|
95
|
+
# 设定任务目标
|
96
|
+
goal = """
|
97
|
+
|
98
|
+
"""
|
99
|
+
work_dir = '/home/ray/default'
|
100
|
+
|
101
|
+
tools = [read_file, list_directory, write_to_file, excute_command, search_arxiv, download_read_arxiv_pdf, get_code_repo_map]
|
102
|
+
asyncio.run(worker(goal, tools, work_dir))
|
103
|
+
```
|
@@ -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=UOCyTbJunqBeBMa1Dma79K6Dk24vR0bELQSz3IhTA4g,487
|
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=PF3hBBzl5RZTda2bAT_Vlp7DiXFhYMzk2Egp7irKVPk,60810
|
10
10
|
beswarm/aient/src/aient/core/response.py,sha256=CSAOQmybBu3i2Yq2YUyi91dZWTN1tmtJEBTI8RFwj_s,30594
|
11
11
|
beswarm/aient/src/aient/core/utils.py,sha256=R4oKj1oVsdfePdQReaW-ZU4VRTCetvdCKPz_OOTOU_w,26072
|
12
12
|
beswarm/aient/src/aient/core/test/test_base_api.py,sha256=pWnycRJbuPSXKKU9AQjWrMAX1wiLC_014Qc9hh5C2Pw,524
|
@@ -121,11 +121,11 @@ beswarm/queries/tree-sitter-languages/typescript-tags.scm,sha256=OMdCeedPiA24ky8
|
|
121
121
|
beswarm/tools/__init__.py,sha256=1QLRX95kJSdCKW8OvAJCg67qlzsU9juU60ciZvUGq00,761
|
122
122
|
beswarm/tools/edit_file.py,sha256=qKOVanfh_79eavRrqqyFirRo07sZ897jUL2PD4GRKJk,6965
|
123
123
|
beswarm/tools/planner.py,sha256=lguBCS6kpwNPoXQvqH-WySabVubT82iyWOkJnjt6dXw,1265
|
124
|
-
beswarm/tools/repomap.py,sha256=
|
124
|
+
beswarm/tools/repomap.py,sha256=CwvwoN5Swr42EzrORTTeV8MMb7mPviy4a4b0fxBu50k,40828
|
125
125
|
beswarm/tools/search_arxiv.py,sha256=9slwBemXjEqrd7-YgVmyMijPXlkhZCybEDRVhWVQ9B0,7937
|
126
126
|
beswarm/tools/think.py,sha256=WLw-7jNIsnS6n8MMSYUin_f-BGLENFmnKM2LISEp0co,1760
|
127
127
|
beswarm/tools/worker.py,sha256=3YnSyXaboNJ9j052NMLoIEOtxWL-uJ6sllonm7jV02E,5104
|
128
|
-
beswarm-0.1.
|
129
|
-
beswarm-0.1.
|
130
|
-
beswarm-0.1.
|
131
|
-
beswarm-0.1.
|
128
|
+
beswarm-0.1.16.dist-info/METADATA,sha256=u339_6M84jBXXi2CpKLbbP39swSB8s41LQJ9OsBxnZQ,2878
|
129
|
+
beswarm-0.1.16.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
130
|
+
beswarm-0.1.16.dist-info/top_level.txt,sha256=pJw4O87wvt5882smuSO6DfByJz7FJ8SxxT8h9fHCmpo,8
|
131
|
+
beswarm-0.1.16.dist-info/RECORD,,
|
File without changes
|
File without changes
|