output list of matches
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ from datetime import datetime
|
|
| 12 |
|
| 13 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 14 |
@tool
|
| 15 |
-
def get_live_cricket_matches()->
|
| 16 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 17 |
"""A tool that does return live cricket match details
|
| 18 |
"""
|
|
@@ -34,7 +34,7 @@ def get_live_cricket_matches()-> str: #it's import to specify the return type
|
|
| 34 |
"status": match.get("status"),
|
| 35 |
"dateTimeGMT": match.get("dateTimeGMT")
|
| 36 |
})
|
| 37 |
-
return
|
| 38 |
return {"error": "Unable to fetch match data"}
|
| 39 |
|
| 40 |
@tool
|
|
|
|
| 12 |
|
| 13 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 14 |
@tool
|
| 15 |
+
def get_live_cricket_matches()-> list: #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 does return live cricket match details
|
| 18 |
"""
|
|
|
|
| 34 |
"status": match.get("status"),
|
| 35 |
"dateTimeGMT": match.get("dateTimeGMT")
|
| 36 |
})
|
| 37 |
+
return match_info
|
| 38 |
return {"error": "Unable to fetch match data"}
|
| 39 |
|
| 40 |
@tool
|