aient 1.0.60__py3-none-any.whl → 1.0.61__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/plugins/config.py +2 -1
- {aient-1.0.60.dist-info → aient-1.0.61.dist-info}/METADATA +1 -1
- {aient-1.0.60.dist-info → aient-1.0.61.dist-info}/RECORD +6 -6
- {aient-1.0.60.dist-info → aient-1.0.61.dist-info}/WHEEL +0 -0
- {aient-1.0.60.dist-info → aient-1.0.61.dist-info}/licenses/LICENSE +0 -0
- {aient-1.0.60.dist-info → aient-1.0.61.dist-info}/top_level.txt +0 -0
aient/plugins/config.py
CHANGED
@@ -8,6 +8,7 @@ from ..utils.prompt import search_key_word_prompt, arxiv_doc_user_prompt
|
|
8
8
|
|
9
9
|
async def get_tools_result_async(function_call_name, function_full_response, function_call_max_tokens, engine, robot, api_key, api_url, use_plugins, model, add_message, convo_id, language):
|
10
10
|
function_response = ""
|
11
|
+
function_to_call = None
|
11
12
|
if function_call_name in registry.tools:
|
12
13
|
function_to_call = registry.tools[function_call_name]
|
13
14
|
if function_call_name == "get_search_results":
|
@@ -41,7 +42,7 @@ async def get_tools_result_async(function_call_name, function_full_response, fun
|
|
41
42
|
function_response = "无法找到相关信息,停止使用 tools"
|
42
43
|
# user_prompt = f"You need to response the following question: {prompt}. Search results is provided inside <Search_results></Search_results> XML tags. Your task is to think about the question step by step and then answer the above question in {config.language} based on the Search results provided. Please response in {config.language} and adopt a style that is logical, in-depth, and detailed. Note: In order to make the answer appear highly professional, you should be an expert in textual analysis, aiming to make the answer precise and comprehensive. Directly response markdown format, without using markdown code blocks"
|
43
44
|
# self.add_to_conversation(user_prompt, "user", convo_id=convo_id)
|
44
|
-
|
45
|
+
elif function_to_call:
|
45
46
|
prompt = json.loads(function_full_response)
|
46
47
|
if inspect.iscoroutinefunction(function_to_call):
|
47
48
|
function_response = await function_to_call(**prompt)
|
@@ -20,7 +20,7 @@ aient/models/groq.py,sha256=2JCB0QE1htOprJHI5fZ11R2RtOhsHlsTjbmFyzc8oSM,10084
|
|
20
20
|
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
|
-
aient/plugins/config.py,sha256=
|
23
|
+
aient/plugins/config.py,sha256=PVb50KF5lDuf2rFucWygPnQvkRoYBf5h3RaK0f06CsU,7573
|
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.
|
39
|
-
aient-1.0.
|
40
|
-
aient-1.0.
|
41
|
-
aient-1.0.
|
42
|
-
aient-1.0.
|
38
|
+
aient-1.0.61.dist-info/licenses/LICENSE,sha256=XNdbcWldt0yaNXXWB_Bakoqnxb3OVhUft4MgMA_71ds,1051
|
39
|
+
aient-1.0.61.dist-info/METADATA,sha256=5L-K2f2wjrHeRsEp6t4MItbtvHUk2pwdZhoDosqVM3w,4973
|
40
|
+
aient-1.0.61.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
41
|
+
aient-1.0.61.dist-info/top_level.txt,sha256=3oXzrP5sAVvyyqabpeq8A2_vfMtY554r4bVE-OHBrZk,6
|
42
|
+
aient-1.0.61.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|