aient 1.0.50__py3-none-any.whl → 1.0.52__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/models/base.py +0 -1
- aient/plugins/excute_command.py +1 -1
- aient/plugins/read_file.py +5 -2
- aient/utils/scripts.py +2 -0
- {aient-1.0.50.dist-info → aient-1.0.52.dist-info}/METADATA +1 -1
- {aient-1.0.50.dist-info → aient-1.0.52.dist-info}/RECORD +9 -9
- {aient-1.0.50.dist-info → aient-1.0.52.dist-info}/WHEEL +0 -0
- {aient-1.0.50.dist-info → aient-1.0.52.dist-info}/licenses/LICENSE +0 -0
- {aient-1.0.50.dist-info → aient-1.0.52.dist-info}/top_level.txt +0 -0
aient/models/base.py
CHANGED
aient/plugins/excute_command.py
CHANGED
aient/plugins/read_file.py
CHANGED
@@ -9,6 +9,9 @@ def read_file(file_path):
|
|
9
9
|
"""
|
10
10
|
Description: Request to read the contents of a file at the specified path. Use this when you need to examine the contents of an existing file you do not know the contents of, for example to analyze code, review text files, or extract information from configuration files. Automatically extracts raw text from PDF and DOCX files. May not be suitable for other types of binary files, as it returns the raw content as a string.
|
11
11
|
|
12
|
+
注意:
|
13
|
+
1. pdf 文件 必须使用 read_file 读取
|
14
|
+
|
12
15
|
参数:
|
13
16
|
file_path: 要读取的文件路径,(required) The path of the file to read (relative to the current working directory)
|
14
17
|
|
@@ -24,7 +27,7 @@ Examples:
|
|
24
27
|
|
25
28
|
1. Reading an entire file:
|
26
29
|
<read_file>
|
27
|
-
<file_path>frontend
|
30
|
+
<file_path>frontend.pdf</file_path>
|
28
31
|
</read_file>
|
29
32
|
|
30
33
|
2. Reading multiple files:
|
@@ -34,7 +37,7 @@ Examples:
|
|
34
37
|
</read_file>
|
35
38
|
|
36
39
|
<read_file>
|
37
|
-
<file_path>backend-config.
|
40
|
+
<file_path>backend-config.txt</file_path>
|
38
41
|
</read_file>
|
39
42
|
|
40
43
|
...
|
aient/utils/scripts.py
CHANGED
@@ -716,4 +716,6 @@ if __name__ == "__main__":
|
|
716
716
|
</tool_call>
|
717
717
|
好的,我现在读取 `README.md` 文件。
|
718
718
|
"""
|
719
|
+
|
720
|
+
test_xml = """首先使用read_file工具读取论文内容,然后使用excute_command工具克隆代码仓库到本地。\n```xml\n<read_file>\n<file_path>/Users/yanyuming/Downloads/GitHub/OceanSynthesis/papers/2412.06410v1.pdf</file_path>\n</read_file>\n\n<excute_command>\n<command>git clone https://github.com/bartbussmann/BatchTopK.git</command>\n</excute_command>\n```"""
|
719
721
|
print(parse_function_xml(test_xml))
|
@@ -11,7 +11,7 @@ aient/core/test/test_image.py,sha256=_T4peNGdXKBHHxyQNx12u-NTyFE8TlYI6NvvagsG2LE
|
|
11
11
|
aient/core/test/test_payload.py,sha256=8jBiJY1uidm1jzL-EiK0s6UGmW9XkdsuuKFGrwFhFkw,2755
|
12
12
|
aient/models/__init__.py,sha256=ouNDNvoBBpIFrLsk09Q_sq23HR0GbLAKfGLIFmfEuXE,219
|
13
13
|
aient/models/audio.py,sha256=kRd-8-WXzv4vwvsTGwnstK-WR8--vr9CdfCZzu8y9LA,1934
|
14
|
-
aient/models/base.py,sha256=
|
14
|
+
aient/models/base.py,sha256=PBfQTQI73OE2OuHvw-XN6vD-_y6k_vLjmT_8J4Gelvo,6813
|
15
15
|
aient/models/chatgpt.py,sha256=TRvUpgBsQW0oJpxOpT0__fYooy2hbkMSYVdM7CqusnY,42296
|
16
16
|
aient/models/claude.py,sha256=thK9P8qkaaoUN3OOJ9Shw4KDs-pAGKPoX4FOPGFXva8,28597
|
17
17
|
aient/models/duckduckgo.py,sha256=1l7vYCs9SG5SWPCbcl7q6pCcB5AUF_r-a4l9frz3Ogo,8115
|
@@ -21,11 +21,11 @@ aient/models/vertex.py,sha256=qVD5l1Q538xXUPulxG4nmDjXE1VoV4yuAkTCpIeJVw0,16795
|
|
21
21
|
aient/plugins/__init__.py,sha256=KrCM6kFD1NB96hfhwUZIG8vJcdZVnfpACMew5YOWxSo,956
|
22
22
|
aient/plugins/arXiv.py,sha256=yHjb6PS3GUWazpOYRMKMzghKJlxnZ5TX8z9F6UtUVow,1461
|
23
23
|
aient/plugins/config.py,sha256=1eOFH0KVDV5qa-n_r-nyTx4sCstlcmoiGoaHqPjaSpI,7528
|
24
|
-
aient/plugins/excute_command.py,sha256=
|
24
|
+
aient/plugins/excute_command.py,sha256=3jh0o3K33GfcHvNywCTvhU5axN5CDi20ZPer4SwWZmI,943
|
25
25
|
aient/plugins/get_time.py,sha256=Ih5XIW5SDAIhrZ9W4Qe5Hs1k4ieKPUc_LAd6ySNyqZk,654
|
26
26
|
aient/plugins/image.py,sha256=ZElCIaZznE06TN9xW3DrSukS7U3A5_cjk1Jge4NzPxw,2072
|
27
27
|
aient/plugins/list_directory.py,sha256=5ubm-mfrj-tanGSDp4M_Tmb6vQb3dx2-XVfQ2yL2G8A,1394
|
28
|
-
aient/plugins/read_file.py,sha256=
|
28
|
+
aient/plugins/read_file.py,sha256=uVCzFt9oivCjTjuWC0ea1wf_m2LVB95pu7qBmPtjvEo,2324
|
29
29
|
aient/plugins/registry.py,sha256=YknzhieU_8nQ3oKlUSSWDB4X7t2Jx0JnqT2Jd9Xsvfk,3574
|
30
30
|
aient/plugins/run_python.py,sha256=dgcUwBunMuDkaSKR5bToudVzSdrXVewktDDFUz_iIOQ,4589
|
31
31
|
aient/plugins/websearch.py,sha256=yiBzqXK5X220ibR-zko3VDsn4QOnLu1k6E2YOygCeTQ,15185
|
@@ -33,9 +33,9 @@ aient/prompt/__init__.py,sha256=GBtn6-JDT8KHFCcuPpfSNE_aGddg5p4FEyMCy4BfwGs,20
|
|
33
33
|
aient/prompt/agent.py,sha256=fYaLRcMZHgM35IIJkeYGeOpJvIhzfXLhpPR4Q3CYIRU,22258
|
34
34
|
aient/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
35
35
|
aient/utils/prompt.py,sha256=UcSzKkFE4-h_1b6NofI6xgk3GoleqALRKY8VBaXLjmI,11311
|
36
|
-
aient/utils/scripts.py,sha256=
|
37
|
-
aient-1.0.
|
38
|
-
aient-1.0.
|
39
|
-
aient-1.0.
|
40
|
-
aient-1.0.
|
41
|
-
aient-1.0.
|
36
|
+
aient/utils/scripts.py,sha256=n0jR5eXCBIK12W4bIx-xU1FVl1hZ4zDC7hq_BWQHYJU,27537
|
37
|
+
aient-1.0.52.dist-info/licenses/LICENSE,sha256=XNdbcWldt0yaNXXWB_Bakoqnxb3OVhUft4MgMA_71ds,1051
|
38
|
+
aient-1.0.52.dist-info/METADATA,sha256=28ua7jSoFzTsq8T9mr_BS_nDJMyM3iCg2b_ree3y8bM,4973
|
39
|
+
aient-1.0.52.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
40
|
+
aient-1.0.52.dist-info/top_level.txt,sha256=3oXzrP5sAVvyyqabpeq8A2_vfMtY554r4bVE-OHBrZk,6
|
41
|
+
aient-1.0.52.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|