north at 18 to 22 mph with gusts up to 34 mph.        > Finished chain.    'The current weather in Pomfret is mostly cloudy with a high near 67 and a chance of showers. Winds are from the north at 18 to 22 mph with gusts up to 34 mph.'SerpAPIâ€‹Now, let's use the SerpAPI tool.tools = load_tools(["serpapi"], llm=llm)agent = initialize_agent(    tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True)agent.run("What is the weather in Pomfret?")            > Entering new AgentExecutor chain...     I need to find out what the current weather is in Pomfret.    Action: Search    Action Input: "weather in Pomfret"    Observation: {'type': 'weather_result', 'temperature': '69', 'unit': 'Fahrenheit', 'precipitation': '2%', 'humidity': '90%', 'wind': '1 mph', 'location': 'Pomfret, CT', 'date': 'Sunday 9:00 PM', 'weather': 'Clear'}    Thought: I now know the current weather in Pomfret.    Final Answer: The current weather in Pomfret is 69 degrees Fahrenheit, 2% precipitation, 90% humidity, and 1 mph wind. It is currently clear.        > Finished chain.    'The current weather in Pomfret is 69 degrees Fahrenheit, 2% precipitation, 90% humidity, and 1 mph wind. It is currently clear.'GoogleSearchAPIWrapperâ€‹Now, let's use the official Google Search API Wrapper.tools = load_tools(["google-search"], llm=llm)agent = initialize_agent(    tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True)agent.run("What is the weather in Pomfret?")            > Entering new AgentExecutor chain...     I should look up the current weather conditions.    Action: Google Search    Action Input: "weather in Pomfret"    Observation: Showers early becoming a steady light rain later in the day. Near record high temperatures. High around 60F. Winds SW at 10 to 15 mph. Chance of rain 60%. Pomfret, CT Weather Forecast, with current conditions, wind, air quality, and what to expect for the next 3 days. Hourly Weather-Pomfret, CT. As of 12:52 am EST. Special Weather Statement
This notebook shows off usage of various search tools.
This notebook shows off usage of various search tools. ->: north at 18 to 22 mph with gusts up to 34 mph.        > Finished chain.    'The current weather in Pomfret is mostly cloudy with a high near 67 and a chance of showers. Winds are from the north at 18 to 22 mph with gusts up to 34 mph.'SerpAPIâ€‹Now, let's use the SerpAPI tool.tools = load_tools(["serpapi"], llm=llm)agent = initialize_agent(    tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True)agent.run("What is the weather in Pomfret?")            > Entering new AgentExecutor chain...     I need to find out what the current weather is in Pomfret.    Action: Search    Action Input: "weather in Pomfret"    Observation: {'type': 'weather_result', 'temperature': '69', 'unit': 'Fahrenheit', 'precipitation': '2%', 'humidity': '90%', 'wind': '1 mph', 'location': 'Pomfret, CT', 'date': 'Sunday 9:00 PM', 'weather': 'Clear'}    Thought: I now know the current weather in Pomfret.    Final Answer: The current weather in Pomfret is 69 degrees Fahrenheit, 2% precipitation, 90% humidity, and 1 mph wind. It is currently clear.        > Finished chain.    'The current weather in Pomfret is 69 degrees Fahrenheit, 2% precipitation, 90% humidity, and 1 mph wind. It is currently clear.'GoogleSearchAPIWrapperâ€‹Now, let's use the official Google Search API Wrapper.tools = load_tools(["google-search"], llm=llm)agent = initialize_agent(    tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True)agent.run("What is the weather in Pomfret?")            > Entering new AgentExecutor chain...     I should look up the current weather conditions.    Action: Google Search    Action Input: "weather in Pomfret"    Observation: Showers early becoming a steady light rain later in the day. Near record high temperatures. High around 60F. Winds SW at 10 to 15 mph. Chance of rain 60%. Pomfret, CT Weather Forecast, with current conditions, wind, air quality, and what to expect for the next 3 days. Hourly Weather-Pomfret, CT. As of 12:52 am EST. Special Weather Statement