Spaces:
Sleeping
Sleeping
another improvement
Browse files
app.py
CHANGED
|
@@ -12,10 +12,10 @@ rapid_api_key=os.environ["RAPID_KEY"]
|
|
| 12 |
|
| 13 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 14 |
@tool
|
| 15 |
-
def get_football_results(
|
| 16 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 17 |
"""A tool that connect to an API that provides live football data and compares the stats of two teams in the English Premier League, then it returns a text response
|
| 18 |
-
where you should look for those football teams given
|
| 19 |
Args:
|
| 20 |
arg1: The first argument provides one of the football teams to check
|
| 21 |
arg2: The second football team to check
|
|
|
|
| 12 |
|
| 13 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 14 |
@tool
|
| 15 |
+
def get_football_results(team1:str, team2:str)-> str: #it's import to specify the return type
|
| 16 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 17 |
"""A tool that connect to an API that provides live football data and compares the stats of two teams in the English Premier League, then it returns a text response
|
| 18 |
+
where you should look for those football teams given and return a comparison of the current stats. Then with the response you should reflect on the comparison commenting on the performance
|
| 19 |
Args:
|
| 20 |
arg1: The first argument provides one of the football teams to check
|
| 21 |
arg2: The second football team to check
|