{"message":"Unified Agentic Writer & RAG API","version":"2.0.0","endpoints":{"planner":{"prefix":"/planner","description":"Standalone document planner with human-in-the-loop","key_endpoints":["POST /planner/sessions — Create planning session","GET  /planner/sessions/{id}/plan — Get current plan","POST /planner/sessions/{id}/feedback — Submit feedback","POST /planner/sessions/{id}/approve — Approve plan","GET  /planner/sessions/{id}/export — Export plan (json/markdown)","GET  /planner/status — Check planner status"],"workflow":"1. Create session → 2. Review plan → 3. Submit feedback (repeat) → 4. Approve"},"rag":{"prefix":"/rag","description":"Document management and vectorstore search","key_endpoints":["POST /rag/upload — Upload and index documents","POST /rag/clear — Clear vectorstore","GET  /rag/query — Search documents","GET  /rag/status — Check vectorstore status","GET  /rag/indexed-files — List indexed files"]},"workflow":{"prefix":"/workflow","description":"AI document generation workflow","key_endpoints":["POST /workflow/write — Generate document from plan","GET  /workflow/status — Check workflow status","POST /workflow/test — Quick end-to-end test"]},"documentation":"/docs","health":"/health"},"typical_workflow":{"step_1":"Upload documents to RAG (/rag/upload)","step_2":"Create and refine a plan (/planner/sessions)","step_3":"Generate document from approved plan (/workflow/write)"}}