File size: 674 Bytes
5e0532d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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()