# # SPDX-FileCopyrightText: Hadad # SPDX-License-Identifier: Apache-2.0 # def styles(reasoning: str, expanded: bool = False) -> str: """ Generates a styled HTML collapsible section using
and tags. Parameters: * reasoning (str): The explanatory or descriptive text to display inside the section. * expanded (bool): If True, the section is expanded by default. Otherwise, it remains collapsed. Returns: str: A string containing HTML and inline CSS to render the styled collapsible block. """ open_attr = "open" if expanded else "" emoji = "🧠" # 🧠 return f"""
{emoji} Reasoning
{reasoning}
"""