""os.environ["OPENWEATHERMAP_API_KEY"] = ""llm = OpenAI(temperature=0)tools = load_tools(["openweathermap-api"], llm)agent_chain = initialize_agent(    tools=tools, llm=llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True)agent_chain.run("What's the weather like in London?")            > Entering new AgentExecutor chain...     I need to find out the current weather in London.    Action: OpenWeatherMap    Action Input: London,GB    Observation: In London,GB, the current weather is as follows:    Detailed status: broken clouds    Wind speed: 2.57 m/s, direction: 240Â°    Humidity: 56%    Temperature:       - Current: 20.11Â°C      - High: 21.75Â°C      - Low: 18.68Â°C      - Feels like: 19.64Â°C    Rain: {}    Heat index: None    Cloud cover: 75%    Thought: I now know the current weather in London.    Final Answer: The current weather in London is broken clouds, with a wind speed of 2.57 m/s, direction 240Â°, humidity of 56%, temperature of 20.11Â°C, high of 21.75Â°C, low of 18.68Â°C, and a heat index of None.        > Finished chain.    'The current weather in London is broken clouds, with a wind speed of 2.57 m/s, direction 240Â°, humidity of 56%, temperature of 20.11Â°C, high of 21.75Â°C, low of 18.68Â°C, and a heat index of None.'PreviousNuclia UnderstandingNextPubMedUse the wrapperUse the toolCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright Â© 2023 LangChain, Inc.
This notebook goes over how to use the OpenWeatherMap component to fetch weather information.
This notebook goes over how to use the OpenWeatherMap component to fetch weather information. ->: ""os.environ["OPENWEATHERMAP_API_KEY"] = ""llm = OpenAI(temperature=0)tools = load_tools(["openweathermap-api"], llm)agent_chain = initialize_agent(    tools=tools, llm=llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True)agent_chain.run("What's the weather like in London?")            > Entering new AgentExecutor chain...     I need to find out the current weather in London.    Action: OpenWeatherMap    Action Input: London,GB    Observation: In London,GB, the current weather is as follows:    Detailed status: broken clouds    Wind speed: 2.57 m/s, direction: 240Â°    Humidity: 56%    Temperature:       - Current: 20.11Â°C      - High: 21.75Â°C      - Low: 18.68Â°C      - Feels like: 19.64Â°C    Rain: {}    Heat index: None    Cloud cover: 75%    Thought: I now know the current weather in London.    Final Answer: The current weather in London is broken clouds, with a wind speed of 2.57 m/s, direction 240Â°, humidity of 56%, temperature of 20.11Â°C, high of 21.75Â°C, low of 18.68Â°C, and a heat index of None.        > Finished chain.    'The current weather in London is broken clouds, with a wind speed of 2.57 m/s, direction 240Â°, humidity of 56%, temperature of 20.11Â°C, high of 21.75Â°C, low of 18.68Â°C, and a heat index of None.'PreviousNuclia UnderstandingNextPubMedUse the wrapperUse the toolCommunityDiscordTwitterGitHubPythonJS/TSMoreHomepageBlogCopyright Â© 2023 LangChain, Inc.