Update app.py
Browse files
app.py
CHANGED
@@ -61,19 +61,20 @@ def get_boardgame_from_bgg(name: str) -> str:
|
|
61 |
"rank": int(rank),
|
62 |
"bgg_url": f"https://boardgamegeek.com/boardgame/{game_id}"
|
63 |
})
|
64 |
-
|
65 |
-
|
66 |
-
def search_boargame_price(name: str) -> str:
|
67 |
|
68 |
"""A tool to search for a boadgame price using duckduckgo search tool.
|
69 |
-
"""
|
70 |
Args:
|
71 |
name: the name of the boargame you want to search for
|
72 |
|
73 |
Returns:
|
74 |
search results for game and price
|
75 |
"""
|
76 |
-
"""
|
|
|
77 |
agent = CodeAgent(
|
78 |
tools[DuckDuckGoSearchTool()],
|
79 |
model = model
|
@@ -82,7 +83,7 @@ def search_boargame_price(name: str) -> str:
|
|
82 |
return agent.run(search_string)
|
83 |
except Exception as e:
|
84 |
return "price not found, use usd 150"
|
85 |
-
"""
|
86 |
@tool
|
87 |
def get_current_time_in_timezone(timezone: str) -> str:
|
88 |
"""A tool that fetches the current local time in a specified timezone.
|
|
|
61 |
"rank": int(rank),
|
62 |
"bgg_url": f"https://boardgamegeek.com/boardgame/{game_id}"
|
63 |
})
|
64 |
+
"""
|
65 |
+
@tool
|
66 |
+
def search_boargame_price(name: str) -> str:
|
67 |
|
68 |
"""A tool to search for a boadgame price using duckduckgo search tool.
|
69 |
+
"""
|
70 |
Args:
|
71 |
name: the name of the boargame you want to search for
|
72 |
|
73 |
Returns:
|
74 |
search results for game and price
|
75 |
"""
|
76 |
+
"""
|
77 |
+
try:
|
78 |
agent = CodeAgent(
|
79 |
tools[DuckDuckGoSearchTool()],
|
80 |
model = model
|
|
|
83 |
return agent.run(search_string)
|
84 |
except Exception as e:
|
85 |
return "price not found, use usd 150"
|
86 |
+
"""
|
87 |
@tool
|
88 |
def get_current_time_in_timezone(timezone: str) -> str:
|
89 |
"""A tool that fetches the current local time in a specified timezone.
|