Spaces:
Sleeping
Sleeping
Merge branch 'main' of https://huggingface.co/spaces/Shouryahere/First_agent_template
Browse files
app.py
CHANGED
|
@@ -52,6 +52,14 @@ def get_jobs(args1:str,args2:str)-> str:
|
|
| 52 |
jobs = jobs + f"{i+1}. {results['jobs_results'][i]['apply_options']}\n"
|
| 53 |
return f"Here are the top 5 {args1} jobs in {args2}:\n{jobs}"
|
| 54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
@tool
|
| 56 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 57 |
|
|
|
|
| 52 |
jobs = jobs + f"{i+1}. {results['jobs_results'][i]['apply_options']}\n"
|
| 53 |
return f"Here are the top 5 {args1} jobs in {args2}:\n{jobs}"
|
| 54 |
|
| 55 |
+
@tool
|
| 56 |
+
def get_wiki(arg1:str)-> str:
|
| 57 |
+
"""A tool that fetches the wikipedia page.
|
| 58 |
+
Args:
|
| 59 |
+
arg1: the subject for getting info from wikipedia.
|
| 60 |
+
"""
|
| 61 |
+
|
| 62 |
+
|
| 63 |
@tool
|
| 64 |
def get_current_time_in_timezone(timezone: str) -> str:
|
| 65 |
|