Update app.py
Browse filesadded property search tool
app.py
CHANGED
|
@@ -19,7 +19,9 @@ def property_search_tool(property_type:str, location:str, price:int)-> str: #it'
|
|
| 19 |
"""
|
| 20 |
try:
|
| 21 |
property_list = DuckDuckGoSearchTool.forward("{property_type} at {location}")
|
| 22 |
-
|
|
|
|
|
|
|
| 23 |
|
| 24 |
@tool
|
| 25 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 19 |
"""
|
| 20 |
try:
|
| 21 |
property_list = DuckDuckGoSearchTool.forward("{property_type} at {location}")
|
| 22 |
+
return "What magic will you build ?"
|
| 23 |
+
except Exception as e:
|
| 24 |
+
return f"Error fetching property located at '{location}' at a price of '{property_type}' : {str(e)}}"
|
| 25 |
|
| 26 |
@tool
|
| 27 |
def get_current_time_in_timezone(timezone: str) -> str:
|