Spotify toolkit #27077
MirrorLimit
started this conversation in
Ideas
Spotify toolkit
#27077
Replies: 2 comments 2 replies
-
I feel like oftentimes I find two artists or even song genres that are similar or that would go well together. I feel like it would be cool if Spotify could create playlists that unite two similar artists or genres that the user seems to enjoy in an equal manner. If this tool were already able to better recommend music to the user, then this functionality seems like something that could be relevant to the users. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checked
Feature request
Feature request to integrate a new tool to Langchain which will:
Motivation
There is currently no direct integration with Spotify in LangChain. Additionally, there are no existing tools in LangChain that provide music-related capabilities such as song recommendations, audio analysis, audio feature exploration, and playlist generation. We aim to fill this gap by incorporating Spotify’s capabilities into LangChain, allowing users to:
We will approach this by interacting with Spotify through the open-source library Spotipy (MIT license). It allows for easier interaction with Spotify without handling the nitty-gritty of handling requests/responses to/from Spotify.
Adding Spotify to LangChain will make it easier for users to explore music through conversations. This tool will focus on things like searching for songs, playlists, and albums, analyzing song features, creating playlists based on moods or genres, and finding new releases or genres.
Proposal (If applicable)
We are a team of four eager to contribute to the open-source community. We intend to create and complete a pull request for this feature by no later than mid-November. Below are the files we'll be creating/modifying:
Files to Modify:
libs/community/langchain_community/agent_toolkits/init.py
To register the toolkit for the Spotify agent
libs/community/langchain_community/tools/init.py
To register the tool
libs/community/langchain_community/utilities/init.py
To register the utilities
libs/community/tests/unit_tests/agent_toolkits/test_imports.py
Add the Spotify toolkit import for the test
libs/community/tests/unit_tests/tools/test_imports.py
Add the Spotify tools import for the test
Files to Create:
Houses the toolkit definitions
/toolkit.py
Defines the SpotifyToolkit class that inherits from the BaseToolkit class
libs/community/langchain_community/tools/spotify
Houses the tool
The different prompts associated with each of the tools
Defines the SpotifyAction class that inherits from the BaseTool class
The file that has all the utilities of the tools (full functionality is here)
Defines the SpotifyAPIWrapper class that inherits from the BaseModel class
The file that has the tests for the spotify tool, there will be a test for each functionality
Beta Was this translation helpful? Give feedback.
All reactions