14b22fc8f6
Created research_integration.py to connect research agent to pipeline: ResearchIntegrator class: - research_for_book(): Research for entire book - research_chapter(): Research specific chapter - should_use_research(): Determine if purpose needs research - get_research_stages(): When to integrate research Research stages: - Pre-writing: Gather research before writing - Per-chapter: Research each chapter - Verification: Check facts post-writing - Enhancement: Strengthen content with research Purpose-specific research config: - UNDERSTAND: Deep research, include academic - DECIDE: Deep, studies, data, comparisons - TRANSFORM: Case studies, success stories - LEARN_HANDS_ON: Best practices, methods - REFERENCE: Comprehensive documentation - BE_INSPIRED: Stories, journeys, examples Functions: - get_research_config_for_purpose() The research agent is now integrated into the nonfiction pipeline.