Get Lore Consistency Report
GET /api/writing/lore/consistency
🔍 Get a comprehensive lore consistency report
Analyzes the entire writing project for lore consistency issues including character inconsistencies, timeline conflicts, and worldbuilding contradictions. Provides recommendations for maintaining narrative coherence.
Query Parameters:
project_type: Filter analysis by project type (optional)
Dependencies:
writing_service: Injected IshvanaWritingModule instance
Returns:
- LoreConsistencyReport with inconsistencies, recommendations, and overall score
Raises:
HTTPException 500: If report generation fails
Example Response:
{
"project_type": "fantasy_novel",
"inconsistencies": [
{"type": "character", "issue": "Age mismatch", "severity": "high"}
],
"recommendations": ["Review chapter 3 timeline"],
"overall_score": 0.85
}Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Responses
Section titled “ Responses ”Successful Response
Lore consistency validation report model.
Comprehensive report on lore consistency within a document or entire project, identifying contradictions, missing references, and consistency issues.
Fields: report_id: Unique report identifier generated_at: Report generation timestamp (auto-generated) scope: Analysis scope (“document” or “project”) inconsistencies: List of detected inconsistencies with details consistency_score: Overall consistency score (0.0-1.0, higher is better)
Used By: - GET /api/writing/lore/consistency endpoint - Lore consistency checker UI - Automated consistency validation - Worldbuilding quality assurance
object
Report generation timestamp
Single inconsistency detected during lore consistency analysis.
object
Validation Error