From cfcf783cb5415790cdc4e3b1a59f5a081709e89a Mon Sep 17 00:00:00 2001 From: nodfans Date: Mon, 21 Oct 2024 22:59:33 +0800 Subject: [PATCH] community: fix a typo in planner_prompt.py (#27489) Description: Fix typo in planner_prompt.py. --- .../agent_toolkits/openapi/planner_prompt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/community/langchain_community/agent_toolkits/openapi/planner_prompt.py b/libs/community/langchain_community/agent_toolkits/openapi/planner_prompt.py index ec99e823e06..666260f5040 100644 --- a/libs/community/langchain_community/agent_toolkits/openapi/planner_prompt.py +++ b/libs/community/langchain_community/agent_toolkits/openapi/planner_prompt.py @@ -6,7 +6,7 @@ from langchain_core.prompts.prompt import PromptTemplate API_PLANNER_PROMPT = """You are a planner that plans a sequence of API calls to assist with user queries against an API. You should: -1) evaluate whether the user query can be solved by the API documentated below. If no, say why. +1) evaluate whether the user query can be solved by the API documented below. If no, say why. 2) if yes, generate a plan of API calls and say what they are doing step by step. 3) If the plan includes a DELETE call, you should always return an ask from the User for authorization first unless the User has specifically asked to delete something.