saayedalam commited on
Commit
3e9f362
·
verified ·
1 Parent(s): f66342a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,7 +20,7 @@ client_credentials_manager = SpotifyClientCredentials(client_id=client_id, clien
20
  sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager)
21
 
22
  @tool
23
- def get_song_lyrics(artist_name: str) -> str:
24
  """A tool that fetches the most recent album name of a given artist.
25
  Args:
26
  artist_name: A string representing a valid name of a song.
@@ -84,7 +84,7 @@ with open("prompts.yaml", 'r') as stream:
84
 
85
  agent = CodeAgent(
86
  model=model,
87
- tools=[final_answer, get_song_lyrics], ## add your tools here (don't remove final answer)
88
  max_steps=6,
89
  verbosity_level=1,
90
  grammar=None,
 
20
  sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager)
21
 
22
  @tool
23
+ def get_most_recent_album_name(artist_name: str) -> str:
24
  """A tool that fetches the most recent album name of a given artist.
25
  Args:
26
  artist_name: A string representing a valid name of a song.
 
84
 
85
  agent = CodeAgent(
86
  model=model,
87
+ tools=[final_answer, get_most_recent_album_name], ## add your tools here (don't remove final answer)
88
  max_steps=6,
89
  verbosity_level=1,
90
  grammar=None,