aient 1.0.62__py3-none-any.whl → 1.0.64__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 CHANGED
@@ -694,6 +694,12 @@ async def get_gpt_payload(request, engine, provider, api_key=None):
694
694
  else:
695
695
  payload["reasoning_effort"] = "medium"
696
696
 
697
+ if "grok-3-mini" in original_model:
698
+ if request.model.endswith("high"):
699
+ payload["reasoning_effort"] = "high"
700
+ elif request.model.endswith("low"):
701
+ payload["reasoning_effort"] = "low"
702
+
697
703
  if "o3-mini" in original_model or "o1" in original_model:
698
704
  if "temperature" in payload:
699
705
  payload.pop("temperature")
aient/plugins/__init__.py CHANGED
@@ -29,4 +29,5 @@ __all__ = [
29
29
  'register_tool',
30
30
  'register_agent',
31
31
  'update_tools_config',
32
+ 'get_function_call_list',
32
33
  ] + list(registry.tools.keys())
aient/plugins/config.py CHANGED
@@ -143,10 +143,15 @@ def get_plugins():
143
143
  }
144
144
 
145
145
  # 修改function_call_list定义,使用registry中的工具
146
- def get_function_call_list():
146
+ def get_function_call_list(tools_list=None):
147
147
  function_list = {}
148
+ if tools_list is None:
149
+ filtered_tools = registry.tools.keys()
150
+ else:
151
+ filtered_tools = [tool.__name__ if callable(tool) else str(tool) for tool in tools_list]
148
152
  for tool_name, tool_func in registry.tools.items():
149
- function_list[tool_name] = function_to_json(tool_func)
153
+ if tool_name in filtered_tools:
154
+ function_list[tool_name] = function_to_json(tool_func)
150
155
  return function_list
151
156
 
152
157
  def get_claude_tools_list():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aient
3
- Version: 1.0.62
3
+ Version: 1.0.64
4
4
  Summary: Aient: The Awakening of Agent.
5
5
  Description-Content-Type: text/markdown
6
6
  License-File: LICENSE
@@ -3,7 +3,7 @@ aient/core/.git,sha256=lrAcW1SxzRBUcUiuKL5tS9ykDmmTXxyLP3YYU-Y-Q-I,45
3
3
  aient/core/__init__.py,sha256=NxjebTlku35S4Dzr16rdSqSTWUvvwEeACe8KvHJnjPg,34
4
4
  aient/core/log_config.py,sha256=kz2_yJv1p-o3lUQOwA3qh-LSc3wMHv13iCQclw44W9c,274
5
5
  aient/core/models.py,sha256=_1wYZg_n9kb2A3C8xCboyqleH2iHc9scwOvtx9DPeok,7582
6
- aient/core/request.py,sha256=Bw-jyrTdFoD1kcThxV2VwKFPSBUxV1xaXcNDKl8bP1E,49761
6
+ aient/core/request.py,sha256=sXAZwek-JtuCYheuaQiLizBSJRij_xZmTdf0-91N0AE,49986
7
7
  aient/core/response.py,sha256=6Fq-EIL7ua1zeT6GMc1fgQeRs_MCP6UST_pL0tM3f3I,27879
8
8
  aient/core/utils.py,sha256=DFpFU8Y-8lzgQlhaDUnao8HmviGoh3-oN8jZR3Dha7E,26150
9
9
  aient/core/test/test_base_api.py,sha256=CjfFzMG26r8C4xCPoVkKb3Ac6pp9gy5NUCbZJHoSSsM,393
@@ -18,9 +18,9 @@ aient/models/duckduckgo.py,sha256=1l7vYCs9SG5SWPCbcl7q6pCcB5AUF_r-a4l9frz3Ogo,81
18
18
  aient/models/gemini.py,sha256=chGLc-8G_DAOxr10HPoOhvVFW1RvMgHd6mt--VyAW98,14730
19
19
  aient/models/groq.py,sha256=2JCB0QE1htOprJHI5fZ11R2RtOhsHlsTjbmFyzc8oSM,10084
20
20
  aient/models/vertex.py,sha256=qVD5l1Q538xXUPulxG4nmDjXE1VoV4yuAkTCpIeJVw0,16795
21
- aient/plugins/__init__.py,sha256=KrCM6kFD1NB96hfhwUZIG8vJcdZVnfpACMew5YOWxSo,956
21
+ aient/plugins/__init__.py,sha256=p3KO6Aa3Lupos4i2SjzLQw1hzQTigOAfEHngsldrsyk,986
22
22
  aient/plugins/arXiv.py,sha256=yHjb6PS3GUWazpOYRMKMzghKJlxnZ5TX8z9F6UtUVow,1461
23
- aient/plugins/config.py,sha256=PVb50KF5lDuf2rFucWygPnQvkRoYBf5h3RaK0f06CsU,7573
23
+ aient/plugins/config.py,sha256=tFN54y9pVgK46e9VAOux9h69XuoKJQeTGTAdFKpPPnc,7813
24
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
@@ -35,8 +35,8 @@ aient/prompt/agent.py,sha256=h39WOoafv0_lh2coBCiG9k-VWa3Yi9HRZV0hnvsc4gs,23598
35
35
  aient/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
36
  aient/utils/prompt.py,sha256=UcSzKkFE4-h_1b6NofI6xgk3GoleqALRKY8VBaXLjmI,11311
37
37
  aient/utils/scripts.py,sha256=n0jR5eXCBIK12W4bIx-xU1FVl1hZ4zDC7hq_BWQHYJU,27537
38
- aient-1.0.62.dist-info/licenses/LICENSE,sha256=XNdbcWldt0yaNXXWB_Bakoqnxb3OVhUft4MgMA_71ds,1051
39
- aient-1.0.62.dist-info/METADATA,sha256=FKOIJc7hqNN-r11LFmYfI-6Fh-i3fUzEqE1YZInVffM,4973
40
- aient-1.0.62.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
41
- aient-1.0.62.dist-info/top_level.txt,sha256=3oXzrP5sAVvyyqabpeq8A2_vfMtY554r4bVE-OHBrZk,6
42
- aient-1.0.62.dist-info/RECORD,,
38
+ aient-1.0.64.dist-info/licenses/LICENSE,sha256=XNdbcWldt0yaNXXWB_Bakoqnxb3OVhUft4MgMA_71ds,1051
39
+ aient-1.0.64.dist-info/METADATA,sha256=eQs-6r7U61NAXa8O_CLToV0HcGv4cH1vyCOCj8zMPks,4973
40
+ aient-1.0.64.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
41
+ aient-1.0.64.dist-info/top_level.txt,sha256=3oXzrP5sAVvyyqabpeq8A2_vfMtY554r4bVE-OHBrZk,6
42
+ aient-1.0.64.dist-info/RECORD,,
File without changes