aient 1.1.57__py3-none-any.whl → 1.1.59__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/response.py CHANGED
@@ -33,6 +33,8 @@ def gemini_json_poccess(response_str):
33
33
  promptTokenCount = safe_get(response_json, "usageMetadata", "promptTokenCount", default=0)
34
34
  candidatesTokenCount = safe_get(response_json, "usageMetadata", "candidatesTokenCount", default=0)
35
35
  totalTokenCount = safe_get(response_json, "usageMetadata", "totalTokenCount", default=0)
36
+ if finishReason != "STOP":
37
+ logger.error(f"finishReason: {finishReason}")
36
38
 
37
39
  content = reasoning_content = safe_get(json_data, "parts", 0, "text", default="")
38
40
  b64_json = safe_get(json_data, "parts", 0, "inlineData", "data", default="")
aient/models/__init__.py CHANGED
@@ -1,9 +1,2 @@
1
1
  from .chatgpt import *
2
- from .claude import *
3
- from .gemini import *
4
- from .vertex import *
5
- from .groq import *
6
- from .audio import *
7
- from .duckduckgo import *
8
-
9
- # __all__ = ["chatgpt", "claude", "claude3", "gemini", "groq"]
2
+ from .audio import *
@@ -1,28 +1,25 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aient
3
- Version: 1.1.57
3
+ Version: 1.1.59
4
4
  Summary: Aient: The Awakening of Agent.
5
+ Requires-Python: >=3.11
5
6
  Description-Content-Type: text/markdown
6
7
  License-File: LICENSE
7
- Requires-Dist: pytz
8
- Requires-Dist: httpx
9
- Requires-Dist: pillow
10
- Requires-Dist: msgspec
11
- Requires-Dist: fastapi
12
- Requires-Dist: chardet
13
- Requires-Dist: requests
14
- Requires-Dist: html2text
15
- Requires-Dist: httpx-socks
16
- Requires-Dist: fake-useragent
17
- Requires-Dist: beautifulsoup4
18
- Requires-Dist: lxml-html-clean
19
- Requires-Dist: pdfminer.six==20240706
8
+ Requires-Dist: beautifulsoup4>=4.13.4
9
+ Requires-Dist: chardet>=5.2.0
20
10
  Requires-Dist: duckduckgo-search==5.3.1
21
- Dynamic: description
22
- Dynamic: description-content-type
11
+ Requires-Dist: fake-useragent>=2.2.0
12
+ Requires-Dist: fastapi>=0.116.1
13
+ Requires-Dist: html2text>=2025.4.15
14
+ Requires-Dist: httpx>=0.28.1
15
+ Requires-Dist: httpx-socks>=0.10.1
16
+ Requires-Dist: lxml-html-clean>=0.4.2
17
+ Requires-Dist: msgspec>=0.19.0
18
+ Requires-Dist: pdfminer-six==20240706
19
+ Requires-Dist: pillow>=11.3.0
20
+ Requires-Dist: pytz>=2025.2
21
+ Requires-Dist: requests>=2.32.4
23
22
  Dynamic: license-file
24
- Dynamic: requires-dist
25
- Dynamic: summary
26
23
 
27
24
  # aient
28
25
 
@@ -1,25 +1,18 @@
1
1
  aient/__init__.py,sha256=SRfF7oDVlOOAi6nGKiJIUK6B_arqYLO9iSMp-2IZZps,21
2
- aient/core/.git,sha256=lrAcW1SxzRBUcUiuKL5tS9ykDmmTXxyLP3YYU-Y-Q-I,45
3
- aient/core/.gitignore,sha256=5JRRlYYsqt_yt6iFvvzhbqh2FTUQMqwo6WwIuFzlGR8,13
4
2
  aient/core/__init__.py,sha256=NxjebTlku35S4Dzr16rdSqSTWUvvwEeACe8KvHJnjPg,34
5
3
  aient/core/log_config.py,sha256=kz2_yJv1p-o3lUQOwA3qh-LSc3wMHv13iCQclw44W9c,274
6
4
  aient/core/models.py,sha256=d4MISNezTSe0ls0-fjuToI2SoT-sk5fWqAJuKVinIlo,7502
7
5
  aient/core/request.py,sha256=M1AfroPgFDG7oTLE2gisvR4BdkUeWqoTwfpxl_nxYB8,76923
8
- aient/core/response.py,sha256=ekcMXxllCyrN9LDEdPttXrLvfcAY2sBqlkJBXxH7H6I,33667
6
+ aient/core/response.py,sha256=KbaNZYl1lwdt6itdJq2SSc5zmcaLSZ0wqLAbMqS6ODU,33760
9
7
  aient/core/utils.py,sha256=8TR442o3VV7Kl9l6f6LlmOUQ1UDZ-aXMzQqm-qIrqE4,28166
10
8
  aient/core/test/test_base_api.py,sha256=pWnycRJbuPSXKKU9AQjWrMAX1wiLC_014Qc9hh5C2Pw,524
11
9
  aient/core/test/test_geminimask.py,sha256=HFX8jDbNg_FjjgPNxfYaR-0-roUrOO-ND-FVsuxSoiw,13254
12
10
  aient/core/test/test_image.py,sha256=_T4peNGdXKBHHxyQNx12u-NTyFE8TlYI6NvvagsG2LE,319
13
11
  aient/core/test/test_payload.py,sha256=8jBiJY1uidm1jzL-EiK0s6UGmW9XkdsuuKFGrwFhFkw,2755
14
- aient/models/__init__.py,sha256=ouNDNvoBBpIFrLsk09Q_sq23HR0GbLAKfGLIFmfEuXE,219
12
+ aient/models/__init__.py,sha256=ZTiZgbfBPTjIPSKURE7t6hlFBVLRS9lluGbmqc1WjxQ,43
15
13
  aient/models/audio.py,sha256=kRd-8-WXzv4vwvsTGwnstK-WR8--vr9CdfCZzu8y9LA,1934
16
14
  aient/models/base.py,sha256=z-Z0pJfTN2x0cuwfvu0BdMRY9O-RmLwHEnBIJN1x4Fg,6719
17
15
  aient/models/chatgpt.py,sha256=LXSMwKRIbWIaPa1Ejk8oCEXVmjZ0rpgFLss35Attn-Q,53493
18
- aient/models/claude.py,sha256=JezghW7y0brl4Y5qiSHvnYR5prQCFywX4RViHt39pGI,26037
19
- aient/models/duckduckgo.py,sha256=1l7vYCs9SG5SWPCbcl7q6pCcB5AUF_r-a4l9frz3Ogo,8115
20
- aient/models/gemini.py,sha256=chGLc-8G_DAOxr10HPoOhvVFW1RvMgHd6mt--VyAW98,14730
21
- aient/models/groq.py,sha256=eXfSOaPxgQEtk4U8qseArN8rFYOFBfMsPwRcDW1nERo,8790
22
- aient/models/vertex.py,sha256=qVD5l1Q538xXUPulxG4nmDjXE1VoV4yuAkTCpIeJVw0,16795
23
16
  aient/plugins/__init__.py,sha256=p3KO6Aa3Lupos4i2SjzLQw1hzQTigOAfEHngsldrsyk,986
24
17
  aient/plugins/arXiv.py,sha256=yHjb6PS3GUWazpOYRMKMzghKJlxnZ5TX8z9F6UtUVow,1461
25
18
  aient/plugins/config.py,sha256=2DXH-LP9KGl_P4467chJu3q4AAbX5nSn4DIkdI0aYH8,7105
@@ -37,8 +30,8 @@ aient/plugins/write_file.py,sha256=9msWSxWfJNhawLA-CyLLxtLipm53AX8o0VyCSV6VieM,3
37
30
  aient/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
31
  aient/utils/prompt.py,sha256=UcSzKkFE4-h_1b6NofI6xgk3GoleqALRKY8VBaXLjmI,11311
39
32
  aient/utils/scripts.py,sha256=h7EA2xBydUF_wdZLsPgjCq4Egdycx1gf2qrdrm0I7y0,40909
40
- aient-1.1.57.dist-info/licenses/LICENSE,sha256=XNdbcWldt0yaNXXWB_Bakoqnxb3OVhUft4MgMA_71ds,1051
41
- aient-1.1.57.dist-info/METADATA,sha256=WU2rjiBNxwUqAFXxYgsBOFRpTdhAlrctm5uXVfS2VRM,4968
42
- aient-1.1.57.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
43
- aient-1.1.57.dist-info/top_level.txt,sha256=3oXzrP5sAVvyyqabpeq8A2_vfMtY554r4bVE-OHBrZk,6
44
- aient-1.1.57.dist-info/RECORD,,
33
+ aient-1.1.59.dist-info/licenses/LICENSE,sha256=XNdbcWldt0yaNXXWB_Bakoqnxb3OVhUft4MgMA_71ds,1051
34
+ aient-1.1.59.dist-info/METADATA,sha256=aWYs-nodkkOBESAPnPGHI8Q6AXYNrd0YnzmTdaji8AQ,4994
35
+ aient-1.1.59.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
36
+ aient-1.1.59.dist-info/top_level.txt,sha256=3oXzrP5sAVvyyqabpeq8A2_vfMtY554r4bVE-OHBrZk,6
37
+ aient-1.1.59.dist-info/RECORD,,
aient/core/.git DELETED
@@ -1 +0,0 @@
1
- gitdir: ../../../.git/modules/src/aient/core
aient/core/.gitignore DELETED
@@ -1 +0,0 @@
1
- /__pycache__