TOOL_DESC = """{name_for_model}: Call this tool to interact with the {name_for_human} API. What is the {name_for_human} API useful for? {description_for_model} Parameters: {parameters} Format the arguments as a JSON object."""
@ -74,7 +74,7 @@ Question: {query}"""
## 步骤一:让千问判断要调用什么工具、生成工具入参
首先我们需要根据 ReAct propmt 模版、query、工具的信息构建 prompt:
首先我们需要根据 ReAct prompt 模版、query、工具的信息构建 prompt:
```py
tool_descs = []
@ -119,10 +119,10 @@ Final Answer: the final answer to the original input question