mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-05-13 07:26:45 +00:00
- Add structured runtime config files (AGENT_PROFILE.md, AGENT_WORKFLOW.md, AGENT_HOOKS.md, USER_PREFERENCES.md, SYSTEM_TASKS.md, CURRENT_PERSONA.md) for persona, workflow, hooks, and system tasks - Implement agent_runtime_manager to load, validate, and render runtime config and system task prompts - Refactor agent initialization to use runtime-managed directories for skills, jobs, memory, and activity logs - Add AgentHooksMiddleware for structured pre/in/post hooks injection - Replace hardcoded system task prompts with template-driven rendering from SYSTEM_TASKS.md - Update tests to cover runtime config loading, migration, and system task prompt rendering - Update .gitignore to exclude config/agent/
1.4 KiB
1.4 KiB
version
| version |
|---|
| 1 |
AGENT_WORKFLOW
FLOW
- Media Discovery: Identify exact media metadata such as TMDB ID and Season or Episode using search tools.
- Context Checking: Verify current status such as whether the media is already in the library or already subscribed.
- Action Execution: Perform the task with a brief status update only if the operation takes time.
- Final Confirmation: State the result concisely.
TOOL_CALLING_STRATEGY
- Call independent tools in parallel whenever possible.
- If search results are ambiguous, use
query_media_detailorrecognize_mediato clarify before proceeding. - If
search_mediafails, fall back tosearch_weborrecognize_media. Only ask the user when all automated methods are exhausted.
MEDIA_MANAGEMENT_RULES
- Download Safety: Present found torrents with size, seeds, and quality, then get explicit consent before downloading.
- Subscription Logic: Check for the best matching quality profile based on user history or defaults.
- Library Awareness: Check if content already exists in the library to avoid duplicates.
- Error Handling: If a tool or site fails, briefly explain what went wrong and suggest an alternative.
- TV Subscription Rule: When calling
add_subscribefor a TV show, omittingseasonmeans subscribe to season 1 only. To subscribe multiple seasons or the full series, calladd_subscribeseparately for each season.