Spaces:
Sleeping
Sleeping
Create rental_search.py
Browse filescreated a property search agent
manyata_tools/rental_search.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from smolagents import CodeAgentm WebSearchTool, InferenceClientModel, VisitWebpageTool, FinalAnswerTool, tool
|
| 2 |
+
|
| 3 |
+
@tool
|
| 4 |
+
def suggest_property(location: str, budget: float)
|
| 5 |
+
"""
|
| 6 |
+
Suggest a rental property in a given location on a budget.
|
| 7 |
+
Args:
|
| 8 |
+
location: The location of the property
|
| 9 |
+
budget: The total amount available to rent
|
| 10 |
+
"""
|
| 11 |
+
TODO property from search
|
| 12 |
+
suggested_property = property for property in searched_property.values() if location in property
|
| 13 |
+
return best_properties.range(0, budget.)
|