o
    4@Hh                     @   s(   d dl mZ ddededefddZdS )	    )DictNmethodparamsreturnc                 c   s"    |du ri }| |d}|V }|S )a  Build a command iterator to send to the BiDi protocol.

    Parameters:
    -----------
        method: The method to execute.
        params: The parameters to pass to the method. Default is None.

    Returns:
    --------
        The response from the command execution.
    N)r   r    )r   r   commandcmdr   r   e/home/air/sanwanet/gpt-api/venv/lib/python3.10/site-packages/selenium/webdriver/common/bidi/common.pycommand_builder   s   
r
   )N)typingr   strr
   r   r   r   r	   <module>   s   