Skip to main content

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

Metadata

Release files for dee-crewai 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dee-crewai 0.2.0
File Size Uploaded
dee_crewai-0.2.0.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dee-crewai 0.2.0
File Interpreter ABI Platform
dee_crewai-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / dee_crewai-0.2.0.tar.gz

Download URL dee_crewai-0.2.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
713f7f26820d2cae939e9c80c20db19c3a9a17703f3c7672f69d1a15d329c1fc
BLAKE2b-256 checksum
How to use checksums
242e5a9fd35744ccd30f20bd9bb0e6c0aa1369ee2b28a1934f1255814cb75d6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / dee_crewai-0.2.0-py3-none-any.whl

Download URL dee_crewai-0.2.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46827a210251c4dfbf9c7f354e1c9e2a7b35a4d854909fa4d79bcd6509dc8cf8
BLAKE2b-256 checksum
How to use checksums
14f0cab3ed966ceb42749dd604c844b50050a6f7c21f477efcfe2e2ac9b77b00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page