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 CHANGED
@@ -81,7 +81,6 @@ class BaseLLM:
81
81
  },
82
82
  ],
83
83
  }
84
- self.truncate_limit: int = 100000
85
84
  self.tokens_usage = defaultdict(int)
86
85
  self.function_calls_counter = {}
87
86
  self.function_call_max_loop = 10
@@ -6,7 +6,7 @@ from .registry import register_tool
6
6
  def excute_command(command):
7
7
  """
8
8
  执行命令并返回输出结果
9
- 禁止用于查看pdf
9
+ 禁止用于查看pdf,禁止使用 pdftotext 命令
10
10
 
11
11
  参数:
12
12
  command: 要执行的命令,可以克隆仓库,安装依赖,运行代码等
@@ -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-config.json</file_path>
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.json</file_path>
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))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aient
3
- Version: 1.0.50
3
+ Version: 1.0.52
4
4
  Summary: Aient: The Awakening of Agent.
5
5
  Description-Content-Type: text/markdown
6
6
  License-File: LICENSE
@@ -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=osN6f1vkO2Dsponq2MzTH-8lABixYfowj46Ky9q12Ps,6855
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=eAoBR6OmEbP7nzUScfRHHK3UwypuE5lxamUro8HmBMk,911
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=1K9wcoB92xY_qmc_eSns903HQ15QQ2Qg3oAf9suMpr4,2278
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=XCXMRdpWRJb34Znk4t9JkFnvzDzGHVA5Vv5WpUgP2_0,27152
37
- aient-1.0.50.dist-info/licenses/LICENSE,sha256=XNdbcWldt0yaNXXWB_Bakoqnxb3OVhUft4MgMA_71ds,1051
38
- aient-1.0.50.dist-info/METADATA,sha256=RmWJ3S5Q7occhCb0_snb3ltvV9MorT0Z51VK2lNvJ7I,4973
39
- aient-1.0.50.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
40
- aient-1.0.50.dist-info/top_level.txt,sha256=3oXzrP5sAVvyyqabpeq8A2_vfMtY554r4bVE-OHBrZk,6
41
- aient-1.0.50.dist-info/RECORD,,
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