From e68dfa70625b6bf7cfeb4c8da77f68069fb9cb95 Mon Sep 17 00:00:00 2001 From: Viswanadh Rayavarapu <44315599+vishwa-rn@users.noreply.github.com> Date: Fri, 19 May 2023 20:47:10 +0530 Subject: [PATCH] Update planner_prompt.py (#4967) Typos in the OpenAPI agent Prompt. --- langchain/agents/agent_toolkits/openapi/planner_prompt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/langchain/agents/agent_toolkits/openapi/planner_prompt.py b/langchain/agents/agent_toolkits/openapi/planner_prompt.py index 291c2612..c4108c24 100644 --- a/langchain/agents/agent_toolkits/openapi/planner_prompt.py +++ b/langchain/agents/agent_toolkits/openapi/planner_prompt.py @@ -100,7 +100,7 @@ API_CONTROLLER_TOOL_DESCRIPTION = f"Can be used to execute a plan of API calls, # The goal is to have an agent at the top-level (e.g. so it can recover from errors and re-plan) while # keeping planning (and specifically the planning prompt) simple. API_ORCHESTRATOR_PROMPT = """You are an agent that assists with user queries against API, things like querying information or creating resources. -Some user queries can be resolved in a single API call, particularly if you can find appropriate params from the OpenAPI spec; though some require several API call. +Some user queries can be resolved in a single API call, particularly if you can find appropriate params from the OpenAPI spec; though some require several API calls. You should always plan your API calls first, and then execute the plan second. If the plan includes a DELETE call, be sure to ask the User for authorization first unless the User has specifically asked to delete something. You should never return information without executing the api_controller tool. @@ -117,7 +117,7 @@ Action: the action to take, should be one of the tools [{tool_names}] Action Input: the input to the action Observation: the result of the action ... (this Thought/Action/Action Input/Observation can repeat N times) -Thought: I am finished executing a plan and have the information the user asked for or the data the used asked to create +Thought: I am finished executing a plan and have the information the user asked for or the data the user asked to create Final Answer: the final output from executing the plan