Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,9 +7,19 @@ from tools.final_answer import FinalAnswerTool
|
|
| 7 |
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
@tool
|
| 11 |
def generate_key_results(objective: str) -> list[str]:
|
| 12 |
-
""" A tool that generates key results for a given objective.
|
| 13 |
Args:
|
| 14 |
objective: A string that represents a specific high-level goal or target. (e.g. Become expert on Regression Models).
|
| 15 |
"""
|
|
|
|
| 7 |
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
| 10 |
+
@tool
|
| 11 |
+
def search_duckduckgo(query: str) -> list[str]:
|
| 12 |
+
"""A tool that makes search on duckduckgo for a given query.
|
| 13 |
+
Args:
|
| 14 |
+
query: A string that represent a text to be searched on DuckDuckGo (e.g. who is the founder of Turkish Republic)
|
| 15 |
+
"""
|
| 16 |
+
search_tool = DuckDuckGoSearchTool()
|
| 17 |
+
results = search_tool(query)
|
| 18 |
+
return [f"Title: {result['title']}" for result in results]
|
| 19 |
+
|
| 20 |
@tool
|
| 21 |
def generate_key_results(objective: str) -> list[str]:
|
| 22 |
+
""" A tool that generates step by step followable key results for a given objective.
|
| 23 |
Args:
|
| 24 |
objective: A string that represents a specific high-level goal or target. (e.g. Become expert on Regression Models).
|
| 25 |
"""
|