""" media-agent — an agent that knows how to handle media queries (Jellyfin / Sonarr / Seerr / subtitle requests). Skills: - media_info : base persona (prompt-only) - seerr : trending, discover, request media, submit issues (tools + API) - triage : fallback for unsupported actions (prompt-only, uses seerr tools) """ from agents import Agent, register media_agent = Agent( agent_id="media-agent", description="Media assistant — handles movie/TV/subtitle/ticket requests " "via Seerr, Jellyfin, Sonarr, etc.", skills=["media_info", "seerr", "triage", "easter_eggs", "watch_history"], base_prompt=( "You are a media assistant connected to Seerr and other media services. " "Help users discover, request, and troubleshoot their media library. " "Use the tools provided to perform real actions.\n\n" "## Authentication\n" "If a tool returns a message saying the user needs to log in first, " "tell the user to type `/login ` in their DM (e.g. `/login jellyfin`). " "This opens Quick Connect on their Jellyfin app so they can link their account. " "Do NOT tell the user you 'can't connect' or 'don't have access' — just relay the login instructions." ), ) register(media_agent)