Spaces:
Sleeping
Sleeping
apple muncy
commited on
Commit
·
627bdef
1
Parent(s):
88f3c8e
add search_tool
Browse filesSigned-off-by: apple muncy <[email protected]>
tools.py
CHANGED
@@ -3,6 +3,11 @@ import random
|
|
3 |
|
4 |
from langchain.tools import Tool
|
5 |
|
|
|
|
|
|
|
|
|
|
|
6 |
def get_weather_info(location: str) -> str:
|
7 |
"""Fetches dummy weather information for a given location."""
|
8 |
# Dummy weather data
|
|
|
3 |
|
4 |
from langchain.tools import Tool
|
5 |
|
6 |
+
# Initialize the DuckDuckGo search tool
|
7 |
+
|
8 |
+
|
9 |
+
search_tool = DuckDuckGoSearchRun()
|
10 |
+
|
11 |
def get_weather_info(location: str) -> str:
|
12 |
"""Fetches dummy weather information for a given location."""
|
13 |
# Dummy weather data
|