The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
docs: replace initialize_agent with create_react_agent in openweathermap - replace deprecated load_tools (#31202)
Michael Li7b9feb60cc57
diff --git a/docs/docs/integrations/providers/openweathermap.mdx b/docs/docs/integrations/providers/openweathermap.mdxindex 6e160f805d..2839526f03 100644--- a/docs/docs/integrations/providers/openweathermap.mdx+++ b/docs/docs/integrations/providers/openweathermap.mdx@@ -37,8 +37,12 @@ You can also easily load this wrapper as a Tool (to use with an Agent).You can do this with:```python-from langchain.agents import load_tools-tools = load_tools(["openweathermap-api"])+import os+from langchain_community.utilities import OpenWeatherMapAPIWrapper++os.environ["OPENWEATHERMAP_API_KEY"] = ""+weather = OpenWeatherMapAPIWrapper()+tools = [weather.run]```For more information on tools, see [this page](/docs/how_to/tools_builtin).