from pydantic import BaseModel from typing import List class ScriptureReference(BaseModel): book: str chapter: int verses: str # e.g. "16-18" or "10" text: str translation: str class CitationService: def format_citations(self, refs: List[ScriptureReference]) -> str: """ Formats a list of scripture references into a readable footer. """ if not refs: return "" formatted = "\n\n**Scripture References:**\n" for ref in refs: formatted += f"- *{ref.book} {ref.chapter}:{ref.verses} ({ref.translation})*\n" return formatted citation_service = CitationService()