beswarm 0.1.42__py3-none-any.whl → 0.1.43__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/prompt/agent.py +33 -25
- {beswarm-0.1.42.dist-info → beswarm-0.1.43.dist-info}/METADATA +3 -2
- {beswarm-0.1.42.dist-info → beswarm-0.1.43.dist-info}/RECORD +6 -6
- {beswarm-0.1.42.dist-info → beswarm-0.1.43.dist-info}/WHEEL +0 -0
- {beswarm-0.1.42.dist-info → beswarm-0.1.43.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.98",
|
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",
|
@@ -71,15 +71,19 @@ Answer the user's request using the relevant tool(s), if they are available. Che
|
|
71
71
|
|
72
72
|
You have tools at your disposal to solve the coding task. Follow these rules regarding tool calls:
|
73
73
|
|
74
|
-
Tool uses are formatted using XML-style tags.
|
74
|
+
Tool uses are formatted using XML-style tags.
|
75
|
+
The **actual name of the tool** (e.g., `read_file`, `edit_file`) must be used as the main XML tag.
|
76
|
+
Do **NOT** use literal placeholder strings like `<tool_name>`, `<parameter1_name>`, or `<tool_name1>` as actual XML tags. These are for illustration only. Always use the specific tool name and its defined parameter names.
|
75
77
|
|
76
|
-
|
77
|
-
|
78
|
-
<
|
78
|
+
Here's how to structure a single tool call. Replace `actual_tool_name_here` with the specific tool's name, and `parameter_name` with actual parameter names for that tool:
|
79
|
+
|
80
|
+
<actual_tool_name_here>
|
81
|
+
<parameter_name>value</parameter_name>
|
82
|
+
<another_parameter_name>another_value</another_parameter_name>
|
79
83
|
...
|
80
|
-
</
|
84
|
+
</actual_tool_name_here>
|
81
85
|
|
82
|
-
For example:
|
86
|
+
For example, to use the `read_file` tool:
|
83
87
|
|
84
88
|
<read_file>
|
85
89
|
<file_path>
|
@@ -87,18 +91,18 @@ For example:
|
|
87
91
|
</file_path>
|
88
92
|
</read_file>
|
89
93
|
|
90
|
-
you
|
94
|
+
If you need to call multiple tools in one turn, list each tool call's XML structure sequentially. For example:
|
91
95
|
|
92
|
-
<
|
96
|
+
<actual_tool_name1_here>
|
93
97
|
<parameter1_name>value1</parameter1_name>
|
94
98
|
...
|
95
|
-
</
|
99
|
+
</actual_tool_name1_here>
|
96
100
|
|
97
101
|
...
|
98
|
-
<
|
102
|
+
<actual_tool_name2_here>
|
99
103
|
<parameter1_name>value1</parameter1_name>
|
100
104
|
...
|
101
|
-
</
|
105
|
+
</actual_tool_name2_here>
|
102
106
|
|
103
107
|
When calling tools in parallel, multiple different or the same tools can be invoked simultaneously. 你可以同时执行这两个或者多个操作。
|
104
108
|
|
@@ -161,34 +165,36 @@ instruction_system_prompt = """
|
|
161
165
|
|
162
166
|
工具使用规范如下:
|
163
167
|
|
164
|
-
Tool uses are formatted using XML-style tags.
|
168
|
+
Tool uses are formatted using XML-style tags.
|
169
|
+
The **actual name of the tool** (e.g., `read_file`, `edit_file`) must be used as the main XML tag.
|
170
|
+
Do **NOT** use literal placeholder strings like `<tool_name>`, `<parameter1_name>`, or `<tool_name1>` as actual XML tags. These are for illustration only. Always use the specific tool name and its defined parameter names.
|
165
171
|
|
166
|
-
|
167
|
-
|
168
|
-
<
|
172
|
+
Here's how to structure a single tool call. Replace `actual_tool_name_here` with the specific tool's name, and `parameter_name` with actual parameter names for that tool:
|
173
|
+
|
174
|
+
<actual_tool_name_here>
|
175
|
+
<parameter_name>value</parameter_name>
|
176
|
+
<another_parameter_name>another_value</another_parameter_name>
|
169
177
|
...
|
170
|
-
</
|
178
|
+
</actual_tool_name_here>
|
171
179
|
|
172
|
-
For example:
|
180
|
+
For example, to use the `read_file` tool:
|
173
181
|
|
174
182
|
<read_file>
|
175
|
-
<file_path>
|
176
|
-
/path/to/file.txt
|
177
|
-
</file_path>
|
183
|
+
<file_path>/path/to/file.txt</file_path>
|
178
184
|
</read_file>
|
179
185
|
|
180
|
-
you
|
186
|
+
If you need to call multiple tools in one turn, list each tool call's XML structure sequentially. For example:
|
181
187
|
|
182
|
-
<
|
188
|
+
<actual_tool_name1_here>
|
183
189
|
<parameter1_name>value1</parameter1_name>
|
184
190
|
...
|
185
|
-
</
|
191
|
+
</actual_tool_name1_here>
|
186
192
|
|
187
193
|
...
|
188
|
-
<
|
194
|
+
<actual_tool_name2_here>
|
189
195
|
<parameter1_name>value1</parameter1_name>
|
190
196
|
...
|
191
|
-
</
|
197
|
+
</actual_tool_name2_here>
|
192
198
|
|
193
199
|
When calling tools in parallel, multiple different or the same tools can be invoked simultaneously.
|
194
200
|
|
@@ -211,7 +217,9 @@ git clone https://github.com/username/project-name.git
|
|
211
217
|
</excute_command>
|
212
218
|
|
213
219
|
工作智能体仅可以使用如下工具:
|
220
|
+
<tools>
|
214
221
|
{tools_list}
|
222
|
+
</tools>
|
215
223
|
"""
|
216
224
|
|
217
225
|
cursor_prompt = """
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: beswarm
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.43
|
4
4
|
Summary: MAS
|
5
5
|
Requires-Python: >=3.11
|
6
6
|
Description-Content-Type: text/markdown
|
@@ -70,7 +70,8 @@ cd ~/Downloads/GitHub/beswarm && docker run --rm \
|
|
70
70
|
|
71
71
|
```
|
72
72
|
docker run --gpus all -it --rm --entrypoint nvidia-smi yym68686/beswarm
|
73
|
-
|
73
|
+
|
74
|
+
docker run -it --rm --entrypoint cat yym68686/beswarm /app/beswarm/aient/src/aient/models/chatgpt.py
|
74
75
|
```
|
75
76
|
|
76
77
|
服务器安装
|
@@ -1,7 +1,7 @@
|
|
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=TKEL3DSEtW3DVTaQSlRa7IUEWUW9JBUBlRA47kggOzw,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
|
@@ -35,7 +35,7 @@ beswarm/aient/src/aient/plugins/run_python.py,sha256=dgcUwBunMuDkaSKR5bToudVzSdr
|
|
35
35
|
beswarm/aient/src/aient/plugins/websearch.py,sha256=I4tYU7CGLdyG6Hd3yK19V-PoG5IbFI9FEEVggyrshRg,15227
|
36
36
|
beswarm/aient/src/aient/plugins/write_file.py,sha256=qmT6iQ3mDyVAa9Sld1jfJq0KPZj0w2kRIHq0JyjpGeA,1853
|
37
37
|
beswarm/aient/src/aient/prompt/__init__.py,sha256=GBtn6-JDT8KHFCcuPpfSNE_aGddg5p4FEyMCy4BfwGs,20
|
38
|
-
beswarm/aient/src/aient/prompt/agent.py,sha256=
|
38
|
+
beswarm/aient/src/aient/prompt/agent.py,sha256=6f5ZB66Rb8y0iQScHMRhvXZ1qMM3YsKpCBPCTAAw2rg,24917
|
39
39
|
beswarm/aient/src/aient/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
40
40
|
beswarm/aient/src/aient/utils/prompt.py,sha256=UcSzKkFE4-h_1b6NofI6xgk3GoleqALRKY8VBaXLjmI,11311
|
41
41
|
beswarm/aient/src/aient/utils/scripts.py,sha256=JbYHsU3LLtxBcuO_2MWbSgpHpCgtVQe9FGEFJpUyejc,25926
|
@@ -127,7 +127,7 @@ beswarm/tools/repomap.py,sha256=CwvwoN5Swr42EzrORTTeV8MMb7mPviy4a4b0fxBu50k,4082
|
|
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.43.dist-info/METADATA,sha256=CsOvxleUywW3WrTQKyrZnqAYmZ-fTOGRytqMQ-vPPwA,3421
|
131
|
+
beswarm-0.1.43.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
132
|
+
beswarm-0.1.43.dist-info/top_level.txt,sha256=pJw4O87wvt5882smuSO6DfByJz7FJ8SxxT8h9fHCmpo,8
|
133
|
+
beswarm-0.1.43.dist-info/RECORD,,
|
File without changes
|
File without changes
|