sreenivas-rao commited on
Commit
b0a2e06
·
verified ·
1 Parent(s): 316ed06

output list of matches

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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()-> 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 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 json.dumps(match_info, indent=4)
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