SimpleSam commited on
Commit
614624c
·
verified ·
1 Parent(s): 2b24a86

Create rental_search.py

Browse files

created a property search agent

Files changed (1) hide show
  1. manyata_tools/rental_search.py +13 -0
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.)