sreenivas-rao commited on
Commit
a6c4020
·
verified ·
1 Parent(s): 7d7662b

return single string

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()-> 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
  """
@@ -30,7 +30,7 @@ def get_live_cricket_matches()-> list: #it's import to specify the return type
30
  match_info.append(
31
  f"{' vs '.join(match.get('teams', []))} ({match.get('matchType')}) -- {match.get('status')} -- at {match.get('venue')}"
32
  )
33
- return match_info
34
  return "No matches scheduled for today."
35
 
36
  @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()-> 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
  """
 
30
  match_info.append(
31
  f"{' vs '.join(match.get('teams', []))} ({match.get('matchType')}) -- {match.get('status')} -- at {match.get('venue')}"
32
  )
33
+ return "\n".join(match_info)
34
  return "No matches scheduled for today."
35
 
36
  @tool