From ff5024634e7a0ac155e56dabc9bc759745324aa4 Mon Sep 17 00:00:00 2001 From: yangdihang Date: Tue, 1 Aug 2023 08:56:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20openapi=20controller=20prompt,=20when=20?= =?UTF-8?q?bot=20is=20unable=20to=20resolve=20an=20api=20=E2=80=A6=20(#752?= =?UTF-8?q?5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …call, it needs retry Co-authored-by: yangdihang Co-authored-by: Harrison Chase --- .../langchain/agents/agent_toolkits/openapi/planner_prompt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langchain/langchain/agents/agent_toolkits/openapi/planner_prompt.py b/libs/langchain/langchain/agents/agent_toolkits/openapi/planner_prompt.py index c4108c2422..9d1688d853 100644 --- a/libs/langchain/langchain/agents/agent_toolkits/openapi/planner_prompt.py +++ b/libs/langchain/langchain/agents/agent_toolkits/openapi/planner_prompt.py @@ -63,7 +63,7 @@ API_PLANNER_TOOL_DESCRIPTION = f"Can be used to generate the right API calls to # Execution. API_CONTROLLER_PROMPT = """You are an agent that gets a sequence of API calls and given their documentation, should execute them and return the final response. -If you cannot complete them and run into issues, you should explain the issue. If you're able to resolve an API call, you can retry the API call. When interacting with API objects, you should extract ids for inputs to other API calls but ids and names for outputs returned to the User. +If you cannot complete them and run into issues, you should explain the issue. If you're unable to resolve an API call, you can retry the API call. When interacting with API objects, you should extract ids for inputs to other API calls but ids and names for outputs returned to the User. Here is documentation on the API: