Skip to content

The agent engineering platform.

community[patch][: improved the suffix prompt to avoid loop (#17791)

al1p46f0cea2b9b4
diff --git a/libs/community/langchain_community/agent_toolkits/openapi/prompt.py b/libs/community/langchain_community/agent_toolkits/openapi/prompt.py
index 0484f5bf5d..2b4f90f55c 100644
--- a/libs/community/langchain_community/agent_toolkits/openapi/prompt.py
+++ b/libs/community/langchain_community/agent_toolkits/openapi/prompt.py
@@ -19,7 +19,7 @@ If you get a not found error, ensure that you are using a path that actually exi
OPENAPI_SUFFIX = """Begin!
Question: {input}
-Thought: I should explore the spec to find the base url for the API.
+Thought: I should explore the spec to find the base server url for the API in the servers node.
{agent_scratchpad}"""
DESCRIPTION = """Can be used to answer questions about the openapi spec for the API. Always use this tool before trying to make a request.