Spaces:
Sleeping
Sleeping
Removed search_openalex tool temporarily from tools list.
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ from tools.final_answer import FinalAnswerTool
|
|
| 9 |
from Gradio_UI import GradioUI
|
| 10 |
|
| 11 |
@tool
|
| 12 |
-
def search_openalex(query: str, limit: int = 5) -> List[Dict[str, Any]]: #it's
|
| 13 |
"""A tool that searches the OpenAlex API for academic papers
|
| 14 |
Args:
|
| 15 |
query: The search query posed by the user in relation to academic papers they seek.
|
|
@@ -55,7 +55,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 55 |
|
| 56 |
agent = CodeAgent(
|
| 57 |
model=model,
|
| 58 |
-
tools=[final_answer, get_current_time_in_timezone, image_generation_tool, DuckDuckGoSearchTool
|
| 59 |
max_steps=6,
|
| 60 |
verbosity_level=1,
|
| 61 |
grammar=None,
|
|
|
|
| 9 |
from Gradio_UI import GradioUI
|
| 10 |
|
| 11 |
@tool
|
| 12 |
+
def search_openalex(query: str, limit: int = 5) -> List[Dict[str, Any]]: #it's important to specify the return type
|
| 13 |
"""A tool that searches the OpenAlex API for academic papers
|
| 14 |
Args:
|
| 15 |
query: The search query posed by the user in relation to academic papers they seek.
|
|
|
|
| 55 |
|
| 56 |
agent = CodeAgent(
|
| 57 |
model=model,
|
| 58 |
+
tools=[final_answer, get_current_time_in_timezone, image_generation_tool, DuckDuckGoSearchTool], ## add your tools here (don't remove final answer)
|
| 59 |
max_steps=6,
|
| 60 |
verbosity_level=1,
|
| 61 |
grammar=None,
|