Ë
    uPêj´  ã                   óF   — d Z ddlmZmZ ddlmZ ddlmZ  G d„ de«      Zy)z0
Base configuration for A2A protocol providers.
é    )ÚABCÚabstractmethod)ÚAsyncIterator)ÚAnyc                   ó–   — e Zd ZdZe	 d	dedeeef   dedz  deeef   fd„«       Ze	 d	dedeeef   dedz  de	eeef      fd„«       Z
y)
ÚBaseA2AProviderConfigz¹
    Base configuration class for A2A protocol providers.

    Each provider should implement this interface to define how to handle
    A2A requests for their specific agent type.
    NÚ
request_idÚparamsÚapi_baseÚreturnc              ‹   ó   K  — y­w)aX  
        Handle non-streaming A2A request.

        Args:
            request_id: A2A JSON-RPC request ID
            params: A2A MessageSendParams containing the message
            api_base: Base URL of the agent
            **kwargs: Additional provider-specific parameters

        Returns:
            A2A SendMessageResponse dict
        N© ©Úselfr	   r
   r   Úkwargss        úh/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/litellm/a2a_protocol/providers/base.pyÚhandle_non_streamingz*BaseA2AProviderConfig.handle_non_streaming   s   è ø� ùó   ‚c                ó   K  — y­w)aT  
        Handle streaming A2A request.

        Args:
            request_id: A2A JSON-RPC request ID
            params: A2A MessageSendParams containing the message
            api_base: Base URL of the agent
            **kwargs: Additional provider-specific parameters

        Yields:
            A2A streaming response events
        Nr   r   s        r   Úhandle_streamingz&BaseA2AProviderConfig.handle_streaming'   s   è ø€ ð, ùr   )N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ÚstrÚdictr   r   r   r   r   ó    r   r   r   
   s²   „ ñð ð
  $ñ	àðð �S˜#�X‘ðð ˜‘*ð	ð 
ˆc�3ˆh‰òó ðð( ð
  $ñ	àðð �S˜#�X‘ðð ˜‘*ð	ð 
�t˜C ˜H‘~Ñ	&òó ñr   r   N)	r   Úabcr   r   Úcollections.abcr   Útypingr   r   r   r   r   ú<module>r!      s!   ðñ÷ $Ý )Ý ô4˜Cõ 4r   