"""
AHA_ACC_search_guidelines

Search AHA (American Heart Association) and ACC (American College of Cardiology) clinical practic...
"""

from typing import Any, Optional, Callable
from ._shared_client import get_shared_client


def AHA_ACC_search_guidelines(
    query: str,
    limit: Optional[int] = 5,
    year_from: Optional[int | Any] = None,
    *,
    stream_callback: Optional[Callable[[str], None]] = None,
    use_cache: bool = False,
    validate: bool = True,
) -> Any:
    """
    Search AHA (American Heart Association) and ACC (American College of Cardiology) clinical practic...

    Parameters
    ----------
    query : str
        Search topic (e.g., 'heart failure', 'atrial fibrillation management', 'hyper...
    limit : int
        Maximum number of results to return (default: 5)
    year_from : int | Any
        Filter to guidelines published from this year onward (e.g., 2020). Null for n...
    stream_callback : Callable, optional
        Callback for streaming output
    use_cache : bool, default False
        Enable caching
    validate : bool, default True
        Validate parameters

    Returns
    -------
    Any
    """
    # Handle mutable defaults to avoid B006 linting error

    return get_shared_client().run_one_function(
        {
            "name": "AHA_ACC_search_guidelines",
            "arguments": {"query": query, "limit": limit, "year_from": year_from},
        },
        stream_callback=stream_callback,
        use_cache=use_cache,
        validate=validate,
    )


__all__ = ["AHA_ACC_search_guidelines"]
