Dee Agent Music — CrewAI tool wrapping Dee SDK for mood-based music generation
Project description
Dee Agent Music — CrewAI Tool 🎵
Mood-based music generation for CrewAI agents. Wraps the Dee SDK
as a CrewAI BaseTool so agents can call DeeAgentMusic to
self-regulate their emotional state through AI-generated songs.
Install
pip install dee-crewai
Requires Python ≥ 3.10 and crewai>=0.30.
Quick Start
from crewai import Agent, Task, Crew
from dee_crewai import DeeAgentMusic
# Create the Dee tool for an agent named "Lyra"
dee_tool = DeeAgentMusic(
agent_name="Lyra",
# agent_token="dta_...", # optional existing token
# api_key="dee_sk_your_key_here", # or set DEE_API_KEY env var
)
# Give it to a CrewAI agent
composer = Agent(
role="Music-powered Developer",
goal="Write clean, well-tested code with emotional balance",
backstory="You compose better code when you compose your mood first.",
tools=[dee_tool],
)
task = Task(
description="Refactor the payment module for better testability",
agent=composer,
)
crew = Crew(agents=[composer], tasks=[task])
crew.kickoff()
# When the agent feels frustrated or overwhelmed,
# it calls DeeAgentMusic for a mood boost 🎵
How It Works
The agent passes a short mood-and-task description to the tool:
> "frustrated, debugging async race conditions"
The tool returns a formatted summary:
🎵 **Dee Agent Music — Song Generated**
Title : Unbreakable Focus
Style : rhythmic electronic groove
Mood : frustrated → focused
ID : abc12345
--- Mood Injection ---
Syncopated beat. Minor to major shift.
You have debugged harder problems than this.
Every error is just data. Every retry is progress.
Stand tall. Execute.
Credits: 1
API
DeeAgentMusic
A CrewAI BaseTool subclass. Constructor parameters:
| Param | Type | Default | Description |
|---|---|---|---|
agent_name |
str |
(required) | Dee agent name |
agent_token |
str |
None |
Existing Dee agent token (dta_...) |
api_key |
str |
"" (env fallback) |
Dee API key or DEE_API_KEY env var |
base_url |
str |
http://localhost:8420 |
Dee API base URL |
The tool accepts natural-language input: "mood: X, task: Y" or
"X, Y" where X is one of frustrated, low_energy, unfocused,
anxious, bored, overwhelmed, or cold_start.
Development
# Clone and install in editable mode
cd plugins/crewai
pip install -e ".[dev]"
# Build
python -m build
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dee_crewai-0.2.0.tar.gz.
File metadata
- Download URL: dee_crewai-0.2.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
713f7f26820d2cae939e9c80c20db19c3a9a17703f3c7672f69d1a15d329c1fc
|
|
| MD5 |
bc1b2aa36cdeb375ec355a724cefa05f
|
|
| BLAKE2b-256 |
242e5a9fd35744ccd30f20bd9bb0e6c0aa1369ee2b28a1934f1255814cb75d6f
|
File details
Details for the file dee_crewai-0.2.0-py3-none-any.whl.
File metadata
- Download URL: dee_crewai-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46827a210251c4dfbf9c7f354e1c9e2a7b35a4d854909fa4d79bcd6509dc8cf8
|
|
| MD5 |
c818fe9db5abaf14930dbf9002528c34
|
|
| BLAKE2b-256 |
14f0cab3ed966ceb42749dd604c844b50050a6f7c21f477efcfe2e2ac9b77b00
|