The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community: clear mypy syntax warning in openapi (#27370)
Erick Friis3fa5ce3e5f6f
diff --git a/libs/community/langchain_community/agent_toolkits/openapi/planner.py b/libs/community/langchain_community/agent_toolkits/openapi/planner.pyindex fbd3fc36b4..eb2c0efe4c 100644--- a/libs/community/langchain_community/agent_toolkits/openapi/planner.py+++ b/libs/community/langchain_community/agent_toolkits/openapi/planner.py@@ -356,7 +356,7 @@ def _create_api_controller_tool(for endpoint_name in endpoint_names:found_match = Falsefor name, _, docs in api_spec.endpoints:- regex_name = re.compile(re.sub("\{.*?\}", ".*", name))+ regex_name = re.compile(re.sub("\\{.*?\\}", ".*", name))if regex_name.match(endpoint_name):found_match = Truedocs_str += f"== Docs for {endpoint_name} == \n{yaml.dump(docs)}\n"