{title}
{items}
def render_bootstrap_modal(doc: dict) -> str: title = doc.get("title", "AI Response") sections = doc.get("sections", []) items = "" for i, sec in enumerate(sections, 1): heading = sec.get("heading", f"Section {i}") content = sec.get("content", "") items += f"""