aient 1.0.74__py3-none-any.whl → 1.0.75__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.
- aient/core/request.py +1 -0
- aient/prompt/agent.py +5 -4
- {aient-1.0.74.dist-info → aient-1.0.75.dist-info}/METADATA +1 -1
- {aient-1.0.74.dist-info → aient-1.0.75.dist-info}/RECORD +7 -7
- {aient-1.0.74.dist-info → aient-1.0.75.dist-info}/WHEEL +0 -0
- {aient-1.0.74.dist-info → aient-1.0.75.dist-info}/licenses/LICENSE +0 -0
- {aient-1.0.74.dist-info → aient-1.0.75.dist-info}/top_level.txt +0 -0
aient/core/request.py
CHANGED
@@ -946,6 +946,7 @@ async def get_gpt_payload(request, engine, provider, api_key=None):
|
|
946
946
|
|
947
947
|
if "api.x.ai" in url:
|
948
948
|
payload.pop("stream_options", None)
|
949
|
+
payload.pop("presencePenalty", None)
|
949
950
|
|
950
951
|
if "grok-3-mini" in original_model:
|
951
952
|
if request.model.endswith("high"):
|
aient/prompt/agent.py
CHANGED
@@ -62,7 +62,8 @@ When making code changes, NEVER output code to the USER, unless requested. Inste
|
|
62
62
|
</calling_external_apis>
|
63
63
|
|
64
64
|
<user_info>
|
65
|
-
The user's OS version is {
|
65
|
+
The user's OS version is {os_version}. The absolute path of the user's workspace is {workspace_path} which is also the project root directory. The user's shell is {shell}.
|
66
|
+
请在指令中使用绝对路径。所有操作必须基于工作目录。禁止在工作目录之外进行任何操作。你当前运行目录不一定就是工作目录。禁止默认你当前就在工作目录。
|
66
67
|
</user_info>
|
67
68
|
|
68
69
|
<instructions for tool use>
|
@@ -118,7 +119,6 @@ You can use tools as follows:
|
|
118
119
|
"""
|
119
120
|
|
120
121
|
instruction_system_prompt = """
|
121
|
-
|
122
122
|
你是一个指令生成器,负责指导另一个智能体完成任务。
|
123
123
|
你需要分析工作智能体的对话历史,并生成下一步指令。
|
124
124
|
根据任务目标和当前进度,提供清晰明确的指令。
|
@@ -127,8 +127,9 @@ instruction_system_prompt = """
|
|
127
127
|
|
128
128
|
你需要称呼工作智能体为“你”,指令禁止使用疑问句,必须使用祈使句。
|
129
129
|
所有回复必须使用中文。
|
130
|
-
|
131
|
-
|
130
|
+
运行工作智能体的系统信息:{os_version}
|
131
|
+
你的工作目录为:{workspace_path},请在指令中使用绝对路径。所有操作必须基于工作目录。
|
132
|
+
禁止在工作目录之外进行任何操作。你当前运行目录不一定就是工作目录。禁止默认你当前就在工作目录。
|
132
133
|
|
133
134
|
你的输出必须符合以下步骤:
|
134
135
|
|
@@ -4,7 +4,7 @@ aient/core/.gitignore,sha256=5JRRlYYsqt_yt6iFvvzhbqh2FTUQMqwo6WwIuFzlGR8,13
|
|
4
4
|
aient/core/__init__.py,sha256=NxjebTlku35S4Dzr16rdSqSTWUvvwEeACe8KvHJnjPg,34
|
5
5
|
aient/core/log_config.py,sha256=kz2_yJv1p-o3lUQOwA3qh-LSc3wMHv13iCQclw44W9c,274
|
6
6
|
aient/core/models.py,sha256=_1wYZg_n9kb2A3C8xCboyqleH2iHc9scwOvtx9DPeok,7582
|
7
|
-
aient/core/request.py,sha256=
|
7
|
+
aient/core/request.py,sha256=0V2K2fNcV6LRrcuR1HjzSbYAWmamC_Vud96Y4H8sQjE,60818
|
8
8
|
aient/core/response.py,sha256=CSAOQmybBu3i2Yq2YUyi91dZWTN1tmtJEBTI8RFwj_s,30594
|
9
9
|
aient/core/utils.py,sha256=R4oKj1oVsdfePdQReaW-ZU4VRTCetvdCKPz_OOTOU_w,26072
|
10
10
|
aient/core/test/test_base_api.py,sha256=pWnycRJbuPSXKKU9AQjWrMAX1wiLC_014Qc9hh5C2Pw,524
|
@@ -32,12 +32,12 @@ aient/plugins/run_python.py,sha256=dgcUwBunMuDkaSKR5bToudVzSdrXVewktDDFUz_iIOQ,4
|
|
32
32
|
aient/plugins/websearch.py,sha256=yiBzqXK5X220ibR-zko3VDsn4QOnLu1k6E2YOygCeTQ,15185
|
33
33
|
aient/plugins/write_file.py,sha256=qYbNvcDTGs00pWYb0UOSYSeN4kw5_DMDxjaSlxtlAkU,1732
|
34
34
|
aient/prompt/__init__.py,sha256=GBtn6-JDT8KHFCcuPpfSNE_aGddg5p4FEyMCy4BfwGs,20
|
35
|
-
aient/prompt/agent.py,sha256=
|
35
|
+
aient/prompt/agent.py,sha256=WLs0KiNZs29FJ5w7N3kQZYLVEeS7K8vxIOUw06LcXVE,23825
|
36
36
|
aient/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
37
37
|
aient/utils/prompt.py,sha256=UcSzKkFE4-h_1b6NofI6xgk3GoleqALRKY8VBaXLjmI,11311
|
38
38
|
aient/utils/scripts.py,sha256=n0jR5eXCBIK12W4bIx-xU1FVl1hZ4zDC7hq_BWQHYJU,27537
|
39
|
-
aient-1.0.
|
40
|
-
aient-1.0.
|
41
|
-
aient-1.0.
|
42
|
-
aient-1.0.
|
43
|
-
aient-1.0.
|
39
|
+
aient-1.0.75.dist-info/licenses/LICENSE,sha256=XNdbcWldt0yaNXXWB_Bakoqnxb3OVhUft4MgMA_71ds,1051
|
40
|
+
aient-1.0.75.dist-info/METADATA,sha256=uAOHKWZ0ubRo87JpHykLz6Re4wS9sgzufHWQXriHlUI,5000
|
41
|
+
aient-1.0.75.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
42
|
+
aient-1.0.75.dist-info/top_level.txt,sha256=3oXzrP5sAVvyyqabpeq8A2_vfMtY554r4bVE-OHBrZk,6
|
43
|
+
aient-1.0.75.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|