"""
FlyBase_get_gene_interactions

Get molecular or genetic interactions for a Drosophila gene from the Alliance of Genome Resources...
"""

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


def FlyBase_get_gene_interactions(
    gene_id: str,
    interaction_type: Optional[str] = None,
    limit: Optional[int] = None,
    page: Optional[int] = None,
    *,
    stream_callback: Optional[Callable[[str], None]] = None,
    use_cache: bool = False,
    validate: bool = True,
) -> Any:
    """
    Get molecular or genetic interactions for a Drosophila gene from the Alliance of Genome Resources...

    Parameters
    ----------
    gene_id : str
        FlyBase gene ID with 'FB:' prefix. Examples: 'FB:FBgn0003996' (white/w), 'FB:...
    interaction_type : str
        Type of interaction: 'molecular' (physical PPI) or 'genetic' (phenotype-based...
    limit : int
        Maximum number of interactions to return (1-100). Default: 20.
    page : int
        Page number for pagination. Default: 1.
    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": "FlyBase_get_gene_interactions",
            "arguments": {
                "gene_id": gene_id,
                "interaction_type": interaction_type,
                "limit": limit,
                "page": page,
            },
        },
        stream_callback=stream_callback,
        use_cache=use_cache,
        validate=validate,
    )


__all__ = ["FlyBase_get_gene_interactions"]
