§
    ÒÁ³gb’  ã                  óú  — U d dl mZ d dlZd dlZd dlmZ d dlmZmZm	Z	m
Z
 d dlmZ d dlZd dlmZ ddlmZmZmZmZmZmZ d	d
lmZmZmZmZ d	dlmZmZmZm Z m!Z! d	dl"m#Z# d	dl$m%Z% d	dl&m'Z'm(Z( d	dl)m*Z* d	dl+m,Z, d	dl-m.Z.m/Z/ d	dl0m1Z1 d	dl2m3Z3 d	dl4m5Z5 d	dl6m7Z7 d	dl8m9Z9 erd dl:m;Z< d dl=m;Z> d	dl?m@Z@mAZA ddgZB ejC        eD¦  «        ZEdeFd<    G d„ de'¦  «        ZG G d„ de(¦  «        ZH G d„ d ¦  «        ZI G d!„ d"¦  «        ZJ G d#„ d$¦  «        ZK G d%„ d&¦  «        ZL G d'„ d(¦  «        ZM G d)„ d*¦  «        ZN G d+„ d,¦  «        ZO G d-„ d.¦  «        ZP G d/„ d0¦  «        ZQ G d1„ d2eQ¦  «        ZR G d3„ d4eQ¦  «        ZS G d5„ d6eQ¦  «        ZT G d7„ d8eQ¦  «        ZU G d9„ d:eQ¦  «        ZV G d;„ d<¦  «        ZW G d=„ d>eW¦  «        ZX G d?„ d@eW¦  «        ZY G dA„ dBeW¦  «        ZZ G dC„ dDeW¦  «        Z[ G dE„ dFeW¦  «        Z\dS )Gé    )ÚannotationsN)ÚTracebackType)ÚTYPE_CHECKINGÚAnyÚIteratorÚcast)ÚAsyncIterator)Ú	BaseModelé   )ÚSessionsÚAsyncSessionsÚSessionsWithRawResponseÚAsyncSessionsWithRawResponseÚSessionsWithStreamingResponseÚ"AsyncSessionsWithStreamingResponseé   )Ú	NOT_GIVENÚQueryÚHeadersÚNotGiven)Úis_azure_clientÚmaybe_transformÚstrip_not_givenÚasync_maybe_transformÚis_async_azure_client)Úcached_property)Úconstruct_type_unchecked)ÚSyncAPIResourceÚAsyncAPIResource)ÚOpenAIError)Ú_merge_mappings)Úsession_update_event_paramÚresponse_create_event_param)ÚWebsocketConnectionOptions)ÚRealtimeClientEvent)ÚRealtimeServerEvent)ÚConversationItemParam)ÚRealtimeClientEventParam)ÚClientConnection)ÚOpenAIÚAsyncOpenAIÚRealtimeÚAsyncRealtimezlogging.LoggerÚlogc                  óh   — e Zd Zedd„¦   «         Zedd„¦   «         Zedd„¦   «         Zi i i dœdd„ZdS )r,   Úreturnr   c                ó*   — t          | j        ¦  «        S ©N)r   Ú_client©Úselfs    úe/var/www/html/mpstechhub/venv/lib/python3.11/site-packages/openai/resources/beta/realtime/realtime.pyÚsessionszRealtime.sessions6   s   € å˜œÑ%Ô%Ð%ó    ÚRealtimeWithRawResponsec                ó    — t          | ¦  «        S ©a  
        This property can be used as a prefix for any HTTP method call to return
        the raw response object instead of the parsed content.

        For more information, see https://www.github.com/openai/openai-python#accessing-raw-response-data-eg-headers
        )r9   r4   s    r6   Úwith_raw_responsezRealtime.with_raw_response:   s   € õ ' tÑ,Ô,Ð,r8   ÚRealtimeWithStreamingResponsec                ó    — t          | ¦  «        S ©zÌ
        An alternative to `.with_raw_response` that doesn't eagerly read the response body.

        For more information, see https://www.github.com/openai/openai-python#with_streaming_response
        )r=   r4   s    r6   Úwith_streaming_responsez Realtime.with_streaming_responseD   s   € õ -¨TÑ2Ô2Ð2r8   ©Úextra_queryÚextra_headersÚwebsocket_connection_optionsÚmodelÚstrrB   r   rC   r   rD   r$   ÚRealtimeConnectionManagerc               ó4   — t          | j        ||||¬¦  «        S ©aÂ  
        The Realtime API enables you to build low-latency, multi-modal conversational experiences. It currently supports text and audio as both input and output, as well as function calling.

        Some notable benefits of the API include:

        - Native speech-to-speech: Skipping an intermediate text format means low latency and nuanced output.
        - Natural, steerable voices: The models have natural inflection and can laugh, whisper, and adhere to tone direction.
        - Simultaneous multimodal output: Text is useful for moderation; faster-than-realtime audio ensures stable playback.

        The Realtime API is a stateful, event-based API that communicates over a WebSocket.
        )ÚclientrB   rC   rD   rE   )rG   r3   ©r5   rE   rB   rC   rD   s        r6   ÚconnectzRealtime.connectM   s,   € õ& )Ø”<Ø#Ø'Ø)EØð
ñ 
ô 
ð 	
r8   N)r0   r   )r0   r9   )r0   r=   )
rE   rF   rB   r   rC   r   rD   r$   r0   rG   ©Ú__name__Ú
__module__Ú__qualname__r   r7   r<   r@   rL   © r8   r6   r,   r,   5   s›   € € € € € Øð&ð &ð &ñ „_ð&ð ð-ð -ð -ñ „_ð-ð ð3ð 3ð 3ñ „_ð3ð  Ø!#ØCEð
ð 
ð 
ð 
ð 
ð 
ð 
ð 
r8   c                  óh   — e Zd Zedd„¦   «         Zedd„¦   «         Zedd„¦   «         Zi i i dœdd„ZdS )r-   r0   r   c                ó*   — t          | j        ¦  «        S r2   )r   r3   r4   s    r6   r7   zAsyncRealtime.sessionsj   s   € å˜Tœ\Ñ*Ô*Ð*r8   ÚAsyncRealtimeWithRawResponsec                ó    — t          | ¦  «        S r;   )rT   r4   s    r6   r<   zAsyncRealtime.with_raw_responsen   s   € õ ,¨DÑ1Ô1Ð1r8   Ú"AsyncRealtimeWithStreamingResponsec                ó    — t          | ¦  «        S r?   )rV   r4   s    r6   r@   z%AsyncRealtime.with_streaming_responsex   s   € õ 2°$Ñ7Ô7Ð7r8   rA   rE   rF   rB   r   rC   r   rD   r$   ÚAsyncRealtimeConnectionManagerc               ó4   — t          | j        ||||¬¦  «        S rI   )rX   r3   rK   s        r6   rL   zAsyncRealtime.connect�   s,   € õ& .Ø”<Ø#Ø'Ø)EØð
ñ 
ô 
ð 	
r8   N)r0   r   )r0   rT   )r0   rV   )
rE   rF   rB   r   rC   r   rD   r$   r0   rX   rM   rQ   r8   r6   r-   r-   i   s›   € € € € € Øð+ð +ð +ñ „_ð+ð ð2ð 2ð 2ñ „_ð2ð ð8ð 8ð 8ñ „_ð8ð  Ø!#ØCEð
ð 
ð 
ð 
ð 
ð 
ð 
ð 
r8   c                  ó.   — e Zd Zd	d„Zed
d„¦   «         ZdS )r9   Úrealtimer,   r0   ÚNonec                ó   — || _         d S r2   ©Ú	_realtime©r5   r[   s     r6   Ú__init__z RealtimeWithRawResponse.__init__ž   ó   € Ø!ˆŒˆˆr8   r   c                ó4   — t          | j        j        ¦  «        S r2   )r   r_   r7   r4   s    r6   r7   z RealtimeWithRawResponse.sessions¡   s   € å& t¤~Ô'>Ñ?Ô?Ð?r8   N©r[   r,   r0   r\   )r0   r   ©rN   rO   rP   ra   r   r7   rQ   r8   r6   r9   r9   �   sN   € € € € € ð"ð "ð "ð "ð ð@ð @ð @ñ „_ð@ð @ð @r8   r9   c                  ó.   — e Zd Zd	d„Zed
d„¦   «         ZdS )rT   r[   r-   r0   r\   c                ó   — || _         d S r2   r^   r`   s     r6   ra   z%AsyncRealtimeWithRawResponse.__init__§   rb   r8   r   c                ó4   — t          | j        j        ¦  «        S r2   )r   r_   r7   r4   s    r6   r7   z%AsyncRealtimeWithRawResponse.sessionsª   s   € å+¨D¬NÔ,CÑDÔDÐDr8   N©r[   r-   r0   r\   )r0   r   re   rQ   r8   r6   rT   rT   ¦   sN   € € € € € ð"ð "ð "ð "ð ðEð Eð Eñ „_ðEð Eð Er8   rT   c                  ó.   — e Zd Zd	d„Zed
d„¦   «         ZdS )r=   r[   r,   r0   r\   c                ó   — || _         d S r2   r^   r`   s     r6   ra   z&RealtimeWithStreamingResponse.__init__°   rb   r8   r   c                ó4   — t          | j        j        ¦  «        S r2   )r   r_   r7   r4   s    r6   r7   z&RealtimeWithStreamingResponse.sessions³   s   € å,¨T¬^Ô-DÑEÔEÐEr8   Nrd   )r0   r   re   rQ   r8   r6   r=   r=   ¯   sN   € € € € € ð"ð "ð "ð "ð ðFð Fð Fñ „_ðFð Fð Fr8   r=   c                  ó.   — e Zd Zd	d„Zed
d„¦   «         ZdS )rV   r[   r-   r0   r\   c                ó   — || _         d S r2   r^   r`   s     r6   ra   z+AsyncRealtimeWithStreamingResponse.__init__¹   rb   r8   r   c                ó4   — t          | j        j        ¦  «        S r2   )r   r_   r7   r4   s    r6   r7   z+AsyncRealtimeWithStreamingResponse.sessions¼   s   € å1°$´.Ô2IÑJÔJÐJr8   Nri   )r0   r   re   rQ   r8   r6   rV   rV   ¸   sN   € € € € € ð"ð "ð "ð "ð ðKð Kð Kñ „_ðKð Kð Kr8   rV   c                  ó†   — e Zd ZU dZded<   ded<   ded<   ded	<   d
ed<   d%d„Zd&d„Zd'd„Zd(d„Zd)d„Z	dddœd*d „Z
d+d#„Zd$S ),ÚAsyncRealtimeConnectionú:Represents a live websocket connection to the Realtime APIÚAsyncRealtimeSessionResourceÚsessionÚAsyncRealtimeResponseResourceÚresponseÚ!AsyncRealtimeConversationResourceÚconversationÚ%AsyncRealtimeInputAudioBufferResourceÚinput_audio_bufferÚAsyncWebsocketConnectionÚ_connectionÚ
connectionr0   r\   c                ó´   — || _         t          | ¦  «        | _        t          | ¦  «        | _        t          | ¦  «        | _        t          | ¦  «        | _        d S r2   )	r|   rs   rt   ru   rv   rw   rx   ry   rz   ©r5   r}   s     r6   ra   z AsyncRealtimeConnection.__init__Ë   sN   € Ø%ˆÔå3°DÑ9Ô9ˆŒÝ5°dÑ;Ô;ˆŒÝ=¸dÑCÔCˆÔÝ"GÈÑ"MÔ"MˆÔÐÐr8   ú"AsyncIterator[RealtimeServerEvent]c               ój   K  — ddl m} 	 	 |                      ¦   «         ƒ d{V —†W V — Œ# |$ r Y dS w xY w©zq
        An infinite-iterator that will continue to yield events until
        the connection is closed.
        r   )ÚConnectionClosedOKTN©Úwebsockets.exceptionsrƒ   Úrecv©r5   rƒ   s     r6   Ú	__aiter__z!AsyncRealtimeConnection.__aiter__Ó   st   è è € ð
 	=Ð<Ð<Ð<Ð<Ð<ð	ð(Ø ŸIšI™KœKÐ'Ð'Ð'Ð'Ð'Ð'Ð'Ð'Ð'Ð'ð(øà!ð 	ð 	ð 	ØˆFˆFð	øøøs   Š) ©2±2r&   c              ƒ  ó`   K  — |                       |                      ¦   «         ƒ d{V —†¦  «        S )ú¹
        Receive the next message from the connection and parses it into a `RealtimeServerEvent` object.

        Canceling this method is safe. There's no risk of losing data.
        N©Úparse_eventÚ
recv_bytesr4   s    r6   r†   zAsyncRealtimeConnection.recvà   s8   è è € ð ×Ò d§o¢oÑ&7Ô&7Ð 7Ð 7Ð 7Ð 7Ð 7Ð 7Ñ8Ô8Ð8r8   Úbytesc              ƒ  óê   K  — | j                              d¬¦  «        ƒ d{V —†}t                               d|¦  «         t	          |t
          ¦  «        st          dt          |¦  «        › �¦  «        ‚|S )á  Receive the next message from the connection as raw bytes.

        Canceling this method is safe. There's no risk of losing data.

        If you want to parse the message into a `RealtimeServerEvent` object like `.recv()` does,
        then you can call `.parse_event(data)`.
        F©ÚdecodeNúReceived websocket message: %sú9Expected `.recv(decode=False)` to return `bytes` but got ©r|   r†   r.   ÚdebugÚ
isinstancerŽ   Ú	TypeErrorÚtype©r5   Úmessages     r6   r�   z"AsyncRealtimeConnection.recv_bytesè   s�   è è € ð Ô(×-Ò-°UÐ-Ñ;Ô;Ð;Ð;Ð;Ð;Ð;Ð;ˆÝ�	Š	Ð3°WÑ=Ô=Ð=Ý˜'¥5Ñ)Ô)ð 	iåÐgÕX\Ð]dÑXeÔXeÐgÐgÑhÔhÐhàˆr8   Úeventú.RealtimeClientEvent | RealtimeClientEventParamc              ƒ  óþ   K  — t          |t          ¦  «        r|                     ddd¬¦  «        n,t          j        t          |t          ¦  «        ƒ d {V —†¦  «        }| j                             |¦  «        ƒ d {V —† d S ©NT)Úuse_api_namesÚexclude_defaultsÚexclude_unset)	r—   r
   Úto_jsonÚjsonÚdumpsr   r(   r|   Úsend©r5   rœ   Údatas      r6   r¦   zAsyncRealtimeConnection.sendø   s”   è è € õ ˜%¥Ñ+Ô+ðZˆE�MŠM¨¸tÐSWˆMÑXÔXÐXå”Õ"7¸Õ?WÑ"XÔ"XÐXÐXÐXÐXÐXÐXÑYÔYð 	ð
 Ô×#Ò# DÑ)Ô)Ð)Ð)Ð)Ð)Ð)Ð)Ð)Ð)Ð)r8   éè  Ú ©ÚcodeÚreasonr¬   Úintr­   rF   c             ƒ  óN   K  — | j                              ||¬¦  «        ƒ d {V —† d S ©Nr«   ©r|   Úclose©r5   r¬   r­   s      r6   r²   zAsyncRealtimeConnection.close   s:   è è € ØÔ×$Ò$¨$°vÐ$Ñ>Ô>Ð>Ð>Ð>Ð>Ð>Ð>Ð>Ð>Ð>r8   r¨   ústr | bytesc           
     óž   — t          t          t          t          j        |¦  «        t          t
          t          ¦  «        ¬¦  «        ¦  «        S ©z˜
        Converts a raw `str` or `bytes` message into a `RealtimeServerEvent` object.

        This is helpful if you're using `.recv_bytes()`.
        )ÚvalueÚtype_©r   r&   r   r¤   Úloadsr   ©r5   r¨   s     r6   rŒ   z#AsyncRealtimeConnection.parse_event  ó@   € õ ÝÕ!9ÅÄ
È4Ñ@PÔ@PÕX\Õ]`ÕbuÑXvÔXvÐ!wÑ!wÔ!wñ
ô 
ð 	
r8   N)r}   r{   r0   r\   )r0   r€   ©r0   r&   ©r0   rŽ   ©rœ   r�   r0   r\   ©r¬   r®   r­   rF   r0   r\   ©r¨   r´   r0   r&   )rN   rO   rP   Ú__doc__Ú__annotations__ra   rˆ   r†   r�   r¦   r²   rŒ   rQ   r8   r6   rq   rq   Á   sù   € € € € € € ØDÐDà)Ð)Ð)Ñ)Ø+Ð+Ð+Ñ+Ø3Ð3Ð3Ñ3Ø=Ð=Ð=Ñ=à)Ð)Ð)Ñ)ðNð Nð Nð Nðð ð ð ð9ð 9ð 9ð 9ðð ð ð ð *ð *ð *ð *ð *.¸Rð ?ð ?ð ?ð ?ð ?ð ?ð
ð 
ð 
ð 
ð 
ð 
r8   rq   c                  ó6   — e Zd ZdZdd„Zdd„ZeZdd„Zdd„ZdS )rX   a3  
    Context manager over a `AsyncRealtimeConnection` that is returned by `beta.realtime.connect()`

    This context manager ensures that the connection will be closed when it exits.

    ---

    Note that if your application doesn't work well with the context manager approach then you
    can call the `.enter()` method directly to initiate a connection.

    **Warning**: You must remember to close the connection with `.close()`.

    ```py
    connection = await client.beta.realtime.connect(...).enter()
    # ...
    await connection.close()
    ```
    rJ   r+   rE   rF   rB   r   rC   r   rD   r$   r0   r\   c               óZ   — || _         || _        d | _        || _        || _        || _        d S r2   )Ú'_AsyncRealtimeConnectionManager__clientÚ&_AsyncRealtimeConnectionManager__modelÚ+_AsyncRealtimeConnectionManager__connectionÚ,_AsyncRealtimeConnectionManager__extra_queryÚ._AsyncRealtimeConnectionManager__extra_headersÚ=_AsyncRealtimeConnectionManager__websocket_connection_options©r5   rJ   rE   rB   rC   rD   s         r6   ra   z'AsyncRealtimeConnectionManager.__init__"  s8   € ð ˆŒØˆŒØ<@ˆÔØ(ˆÔØ,ˆÔØ.JˆÔ+Ð+Ð+r8   rq   c              ƒ  óÆ  K  — 	 ddl m} n"# t          $ r}t          d¦  «        |‚d}~ww xY w| j        }| j        j        }t          | j        ¦  «        r)| j                             | j	        |¦  «        ƒ d{V —†\  }}|  
                    ¦   «                              i | j        j        j        ¥d| j	        i¥|¥¬¦  «        }t                               d|¦  «         | j        r t                               d| j        ¦  «         t#           |t%          |¦  «        f| j        j        t)          i |¥d	d
i¥| j        ¦  «        dœ| j        ¤Žƒ d{V —†¦  «        | _        | j        S )u‡  
        ðŸ‘‹ If your application doesn't work well with the context manager approach then you
        can call this method directly to initiate a connection.

        **Warning**: You must remember to close the connection with `.close()`.

        ```py
        connection = await client.beta.realtime.connect(...).enter()
        # ...
        await connection.close()
        ```
        r   ©rL   ú9You need to install `openai[realtime]` to use this methodNrE   ©ÚparamsúConnecting to %súConnection options: %súOpenAI-Betaúrealtime=v1©Úuser_agent_headerÚadditional_headers)Úwebsockets.asyncio.clientrL   ÚImportErrorr    rÉ   rÆ   Úauth_headersr   Ú_configure_realtimerÇ   Ú_prepare_urlÚ	copy_withÚbase_urlrÑ   r.   r–   rË   rq   rF   Ú
user_agentr!   rÊ   rÈ   ©r5   rL   ÚexcrB   rÛ   Úurls         r6   Ú
__aenter__z)AsyncRealtimeConnectionManager.__aenter__2  sä  è è € ð	dØ9Ð9Ð9Ð9Ð9Ð9Ð9øÝð 	dð 	dð 	dÝÐYÑZÔZÐ`cÐcøøøøð	døøøð Ô(ˆØ”}Ô1ˆÝ  ¤Ñ/Ô/ð 	kØ.2¬m×.OÒ.OÐPTÔP\Ð^iÑ.jÔ.jÐ(jÐ(jÐ(jÐ(jÐ(jÐ(jÑ%ˆK˜à×ÒÑ!Ô!×+Ò+ðØ”-Ô(Ô/ðà˜œðð ð ðð ,ñ 
ô 
ˆõ 	�	Š	Ð$ cÑ*Ô*Ð*ØÔ.ð 	UÝ�IŠIÐ.°Ô0SÑTÔTÐTå3Ø�'Ý�C‘”ðà"&¤-Ô":Ý#2ðØ&ðà% }ðð ð Ô(ñ$ô $ðð ð Ô5ðð ð ð ð ð ð ð ñ
ô 
ˆÔð Ô Ð s   „ ‹
*•%¥*ú	httpx.URLc                óþ   — | j         j        �t          j        | j         j        ¦  «        }n | j         j                             d¬¦  «        }|j                             d¦  «        dz   }|                     |¬¦  «        S ©NÚwss)Úschemeó   /s	   /realtime)Úraw_path)rÆ   Úwebsocket_base_urlÚhttpxÚURLÚ	_base_urlrÞ   rë   Úrstrip©r5   rß   Úmerge_raw_paths      r6   rÝ   z+AsyncRealtimeConnectionManager._prepare_urlg  óp   € ØŒ=Ô+Ð7Ý”y ¤Ô!AÑBÔBˆHˆHà”}Ô.×8Ò8ÀÐ8ÑFÔFˆHà!Ô*×1Ò1°$Ñ7Ô7¸,ÑFˆØ×!Ò!¨>Ð!Ñ:Ô:Ð:r8   Úexc_typeútype[BaseException] | Nonerâ   úBaseException | NoneÚexc_tbúTracebackType | Nonec              ƒ  óZ   K  — | j         �!| j                              ¦   «         ƒ d {V —† d S d S r2   )rÈ   r²   ©r5   rô   râ   r÷   s       r6   Ú	__aexit__z(AsyncRealtimeConnectionManager.__aexit__p  sF   è è € ð ÔÐ(ØÔ#×)Ò)Ñ+Ô+Ð+Ð+Ð+Ð+Ð+Ð+Ð+Ð+Ð+ð )Ð(r8   N)rJ   r+   rE   rF   rB   r   rC   r   rD   r$   r0   r\   )r0   rq   ©r0   rå   ©rô   rõ   râ   rö   r÷   rø   r0   r\   )	rN   rO   rP   rÂ   ra   rä   ÚenterrÝ   rû   rQ   r8   r6   rX   rX     sz   € € € € € ðð ð&Kð Kð Kð Kð 1!ð 1!ð 1!ð 1!ðf €Eð;ð ;ð ;ð ;ð,ð ,ð ,ð ,ð ,ð ,r8   rX   c                  ó†   — e Zd ZU dZded<   ded<   ded<   ded	<   d
ed<   d%d„Zd&d„Zd'd„Zd(d„Zd)d„Z	dddœd*d „Z
d+d#„Zd$S ),ÚRealtimeConnectionrr   ÚRealtimeSessionResourcert   ÚRealtimeResponseResourcerv   ÚRealtimeConversationResourcerx   Ú RealtimeInputAudioBufferResourcerz   ÚWebsocketConnectionr|   r}   r0   r\   c                ó´   — || _         t          | ¦  «        | _        t          | ¦  «        | _        t          | ¦  «        | _        t          | ¦  «        | _        d S r2   )	r|   r  rt   r  rv   r  rx   r  rz   r   s     r6   ra   zRealtimeConnection.__init__�  sN   € Ø%ˆÔå.¨tÑ4Ô4ˆŒÝ0°Ñ6Ô6ˆŒÝ8¸Ñ>Ô>ˆÔÝ"BÀ4Ñ"HÔ"HˆÔÐÐr8   úIterator[RealtimeServerEvent]c              #  ó\   K  — ddl m} 	 	 |                      ¦   «         V — Œ# |$ r Y dS w xY wr‚   r„   r‡   s     r6   Ú__iter__zRealtimeConnection.__iter__‰  s_   è è € ð
 	=Ð<Ð<Ð<Ð<Ð<ð	ð"Ø—i’i‘k”kÐ!Ð!Ð!ð"øà!ð 	ð 	ð 	ØˆFˆFð	øøøs   Š" ¢+ª+r&   c                óP   — |                       |                      ¦   «         ¦  «        S )rŠ   r‹   r4   s    r6   r†   zRealtimeConnection.recv–  s"   € ð ×Ò §¢Ñ 1Ô 1Ñ2Ô2Ð2r8   rŽ   c                óÚ   — | j                              d¬¦  «        }t                               d|¦  «         t	          |t
          ¦  «        st          dt          |¦  «        › �¦  «        ‚|S )r�   Fr‘   r“   r”   r•   rš   s     r6   r�   zRealtimeConnection.recv_bytesž  sk   € ð Ô"×'Ò'¨uÐ'Ñ5Ô5ˆÝ�	Š	Ð3°WÑ=Ô=Ð=Ý˜'¥5Ñ)Ô)ð 	iåÐgÕX\Ð]dÑXeÔXeÐgÐgÑhÔhÐhàˆr8   rœ   r�   c                óâ   — t          |t          ¦  «        r|                     ddd¬¦  «        n&t          j        t          |t          ¦  «        ¦  «        }| j                             |¦  «         d S rŸ   )	r—   r
   r£   r¤   r¥   r   r(   r|   r¦   r§   s      r6   r¦   zRealtimeConnection.send®  sk   € õ ˜%¥Ñ+Ô+ðNˆE�MŠM¨¸tÐSWˆMÑXÔXÐXå”�O¨EÕ3KÑLÔLÑMÔMð 	ð
 	Ô×Ò˜dÑ#Ô#Ð#Ð#Ð#r8   r©   rª   r«   r¬   r®   r­   rF   c               ó>   — | j                              ||¬¦  «         d S r°   r±   r³   s      r6   r²   zRealtimeConnection.close¶  s$   € ØÔ×Ò D°ÐÑ8Ô8Ð8Ð8Ð8r8   r¨   r´   c           
     óž   — t          t          t          t          j        |¦  «        t          t
          t          ¦  «        ¬¦  «        ¦  «        S r¶   r¹   r»   s     r6   rŒ   zRealtimeConnection.parse_event¹  r¼   r8   N)r}   r  r0   r\   )r0   r  r½   r¾   r¿   rÀ   rÁ   )rN   rO   rP   rÂ   rÃ   ra   r	  r†   r�   r¦   r²   rŒ   rQ   r8   r6   r   r   w  sù   € € € € € € ØDÐDà$Ð$Ð$Ñ$Ø&Ð&Ð&Ñ&Ø.Ð.Ð.Ñ.Ø8Ð8Ð8Ñ8à$Ð$Ð$Ñ$ðIð Ið Ið Iðð ð ð ð3ð 3ð 3ð 3ðð ð ð ð $ð $ð $ð $ð $(°rð 9ð 9ð 9ð 9ð 9ð 9ð
ð 
ð 
ð 
ð 
ð 
r8   r   c                  ó6   — e Zd ZdZdd„Zdd„ZeZdd„Zdd„ZdS )rG   a"  
    Context manager over a `RealtimeConnection` that is returned by `beta.realtime.connect()`

    This context manager ensures that the connection will be closed when it exits.

    ---

    Note that if your application doesn't work well with the context manager approach then you
    can call the `.enter()` method directly to initiate a connection.

    **Warning**: You must remember to close the connection with `.close()`.

    ```py
    connection = client.beta.realtime.connect(...).enter()
    # ...
    connection.close()
    ```
    rJ   r*   rE   rF   rB   r   rC   r   rD   r$   r0   r\   c               óZ   — || _         || _        d | _        || _        || _        || _        d S r2   )Ú"_RealtimeConnectionManager__clientÚ!_RealtimeConnectionManager__modelÚ&_RealtimeConnectionManager__connectionÚ'_RealtimeConnectionManager__extra_queryÚ)_RealtimeConnectionManager__extra_headersÚ8_RealtimeConnectionManager__websocket_connection_optionsrÌ   s         r6   ra   z"RealtimeConnectionManager.__init__Ø  s8   € ð ˆŒØˆŒØ7;ˆÔØ(ˆÔØ,ˆÔØ.JˆÔ+Ð+Ð+r8   r   c                óª  — 	 ddl m} n"# t          $ r}t          d¦  «        |‚d}~ww xY w| j        }| j        j        }t          | j        ¦  «        r#| j                             | j	        |¦  «        \  }}|  
                    ¦   «                              i | j        j        j        ¥d| j	        i¥|¥¬¦  «        }t                               d|¦  «         | j        r t                               d| j        ¦  «         t#           |t%          |¦  «        f| j        j        t)          i |¥d	d
i¥| j        ¦  «        dœ| j        ¤Ž¦  «        | _        | j        S )u{  
        ðŸ‘‹ If your application doesn't work well with the context manager approach then you
        can call this method directly to initiate a connection.

        **Warning**: You must remember to close the connection with `.close()`.

        ```py
        connection = client.beta.realtime.connect(...).enter()
        # ...
        connection.close()
        ```
        r   rÎ   rÏ   NrE   rÐ   rÒ   rÓ   rÔ   rÕ   rÖ   )Úwebsockets.sync.clientrL   rÚ   r    r  r  rÛ   r   rÜ   r  rÝ   rÞ   rß   rÑ   r.   r–   r  r   rF   rà   r!   r  r  rá   s         r6   Ú	__enter__z#RealtimeConnectionManager.__enter__è  s®  € ð	dØ6Ð6Ð6Ð6Ð6Ð6Ð6øÝð 	dð 	dð 	dÝÐYÑZÔZÐ`cÐcøøøøð	døøøð Ô(ˆØ”}Ô1ˆÝ˜4œ=Ñ)Ô)ð 	eØ(,¬×(IÒ(IÈ$Ì,ÐXcÑ(dÔ(dÑ%ˆK˜à×ÒÑ!Ô!×+Ò+ðØ”-Ô(Ô/ðà˜œðð ð ðð ,ñ 
ô 
ˆõ 	�	Š	Ð$ cÑ*Ô*Ð*ØÔ.ð 	UÝ�IŠIÐ.°Ô0SÑTÔTÐTå.ØˆGÝ�C‘”ðà"&¤-Ô":Ý#2ðØ&ðà% }ðð ð Ô(ñ$ô $ðð ð Ô5ðð ñ
ô 
ˆÔð Ô Ð s   ‚	 ‰
(“#£(rå   c                óþ   — | j         j        �t          j        | j         j        ¦  «        }n | j         j                             d¬¦  «        }|j                             d¦  «        dz   }|                     |¬¦  «        S rç   )r  rì   rí   rî   rï   rÞ   rë   rð   rñ   s      r6   rÝ   z&RealtimeConnectionManager._prepare_url  ró   r8   rô   rõ   râ   rö   r÷   rø   c                óJ   — | j         �| j                              ¦   «          d S d S r2   )r  r²   rú   s       r6   Ú__exit__z"RealtimeConnectionManager.__exit__&  s0   € ð ÔÐ(ØÔ×#Ò#Ñ%Ô%Ð%Ð%Ð%ð )Ð(r8   N)rJ   r*   rE   rF   rB   r   rC   r   rD   r$   r0   r\   )r0   r   rü   rý   )	rN   rO   rP   rÂ   ra   r  rþ   rÝ   r  rQ   r8   r6   rG   rG   Ä  sz   € € € € € ðð ð&Kð Kð Kð Kð 1!ð 1!ð 1!ð 1!ðf €Eð;ð ;ð ;ð ;ð&ð &ð &ð &ð &ð &r8   rG   c                  ó   — e Zd Zdd„ZdS )ÚBaseRealtimeConnectionResourcer}   r   r0   r\   c                ó   — || _         d S r2   ©r|   r   s     r6   ra   z'BaseRealtimeConnectionResource.__init__.  ó   € Ø%ˆÔÐÐr8   N)r}   r   r0   r\   ©rN   rO   rP   ra   rQ   r8   r6   r  r  -  ó(   € € € € € ð&ð &ð &ð &ð &ð &r8   r  c                  ó   — e Zd Zedœd
d„Zd	S )r  ©Úevent_idrt   ú"session_update_event_param.Sessionr&  ústr | NotGivenr0   r\   c               ó‚   — | j                              t          t          t	          d||dœ¦  «        ¦  «        ¦  «         dS ©uì  Send this event to update the sessionâ€™s default configuration.

        The client may
        send this event at any time to update the session configuration, and any
        field may be updated at any time, except for "voice". The server will respond
        with a `session.updated` event that shows the full effective configuration.
        Only fields that are present are updated, thus the correct way to clear a
        field like "instructions" is to pass an empty string.
        zsession.update)r™   rt   r&  N©r|   r¦   r   r(   r   ©r5   rt   r&  s      r6   ÚupdatezRealtimeSessionResource.update3  sP   € ð 	Ô×ÒÝÝ(ÝÐ)9ÀgÐ[cÐ dÐ dÑeÔeñô ñ	
ô 	
ð 	
ð 	
ð 	
r8   N©rt   r'  r&  r(  r0   r\   ©rN   rO   rP   r   r-  rQ   r8   r6   r  r  2  s5   € € € € € Ø`ið 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
r8   r  c                  ó.   — e Zd Zeedœdd„Zeedœdd„ZdS )r  ©r&  Úresponse_idr&  r(  r2  r0   r\   c               ó‚   — | j                              t          t          t	          d||dœ¦  «        ¦  «        ¦  «         dS ©z½Send this event to cancel an in-progress response.

        The server will respond
        with a `response.cancelled` event or an error if there is no response to
        cancel.
        zresponse.cancel)r™   r&  r2  Nr+  ©r5   r&  r2  s      r6   ÚcancelzRealtimeResponseResource.cancelF  sP   € ð 	Ô×ÒÝÝ(ÝÐ):ÈÐalÐ mÐ mÑnÔnñô ñ	
ô 	
ð 	
ð 	
ð 	
r8   ©r&  rv   rv   ú/response_create_event_param.Response | NotGivenc               ó‚   — | j                              t          t          t	          d||dœ¦  «        ¦  «        ¦  «         dS ©a  
        This event instructs the server to create a Response, which means triggering
        model inference. When in Server VAD mode, the server will create Responses
        automatically.

        A Response will include at least one Item, and may have two, in which case
        the second will be a function call. These Items will be appended to the
        conversation history.

        The server will respond with a `response.created` event, events for Items
        and content created, and finally a `response.done` event to indicate the
        Response is complete.

        The `response.create` event includes inference configuration like
        `instructions`, and `temperature`. These fields will override the Session's
        configuration for this Response only.
        zresponse.create)r™   r&  rv   Nr+  ©r5   r&  rv   s      r6   ÚcreatezRealtimeResponseResource.createT  sP   € ð. 	Ô×ÒÝÝ(ÝÐ):ÈÐ^fÐ gÐ gÑhÔhñô ñ	
ô 	
ð 	
ð 	
ð 	
r8   N©r&  r(  r2  r(  r0   r\   ©r&  r(  rv   r8  r0   r\   ©rN   rO   rP   r   r6  r<  rQ   r8   r6   r  r  E  s^   € € € € € Ø3<Ð\eð 
ð 
ð 
ð 
ð 
ð 
ð" $-ØDMð	
ð 
ð 
ð 
ð 
ð 
ð 
ð 
r8   r  c                  ó&   — e Zd Zedd„¦   «         ZdS )r  r0   Ú RealtimeConversationItemResourcec                ó*   — t          | j        ¦  «        S r2   )rA  r|   r4   s    r6   Úitemz!RealtimeConversationResource.itemt  s   € å/°Ô0@ÑAÔAÐAr8   N)r0   rA  ©rN   rO   rP   r   rC  rQ   r8   r6   r  r  s  s8   € € € € € ØðBð Bð Bñ „_ðBð Bð Br8   r  c                  ó:   — e Zd Zedœdd„Zeed	œdd„Zedœdd„ZdS )rA  r%  Úitem_idrF   r&  r(  r0   r\   c               ó‚   — | j                              t          t          t	          d||dœ¦  «        ¦  «        ¦  «         dS ©a,  Send this event when you want to remove any item from the conversation
        history.

        The server will respond with a `conversation.item.deleted` event,
        unless the item does not exist in the conversation history, in which case the
        server will respond with an error.
        zconversation.item.delete)r™   rF  r&  Nr+  ©r5   rF  r&  s      r6   Údeletez'RealtimeConversationItemResource.deletez  sQ   € ð 	Ô×ÒÝÝ(ÝÐ)CÐPWÐemÐ nÐ nÑoÔoñô ñ	
ô 	
ð 	
ð 	
ð 	
r8   ©r&  Úprevious_item_idrC  r'   rL  c               ó„   — | j                              t          t          t	          d|||dœ¦  «        ¦  «        ¦  «         dS ©aÝ  
        Add a new Item to the Conversation's context, including messages, function
        calls, and function call responses. This event can be used both to populate a
        "history" of the conversation and to add new items mid-stream, but has the
        current limitation that it cannot populate assistant audio messages.

        If successful, the server will respond with a `conversation.item.created`
        event, otherwise an `error` event will be sent.
        zconversation.item.create)r™   rC  r&  rL  Nr+  ©r5   rC  r&  rL  s       r6   r<  z'RealtimeConversationItemResource.create‰  s\   € ð  	Ô×ÒÝÝ(Ýà :Ø $Ø$,Ø,<ð	ð ñô ñ
ô 
ñ	
ô 	
ð 	
ð 	
ð 	
r8   Úaudio_end_msr®   Úcontent_indexc               ó†   — | j                              t          t          t	          d||||dœ¦  «        ¦  «        ¦  «         dS ©u„  Send this event to truncate a previous assistant messageâ€™s audio.

        The server
        will produce audio faster than realtime, so this event is useful when the user
        interrupts to truncate audio that has already been sent to the client but not
        yet played. This will synchronize the server's understanding of the audio with
        the client's playback.

        Truncating audio will delete the server-side text transcript to ensure there
        is not text in the context that hasn't been heard by the user.

        If successful, the server will respond with a `conversation.item.truncated`
        event.
        zconversation.item.truncate)r™   rP  rQ  rF  r&  Nr+  ©r5   rP  rQ  rF  r&  s        r6   Útruncatez)RealtimeConversationItemResource.truncate§  s_   € ð" 	Ô×ÒÝÝ(Ýà <Ø(4Ø)6Ø#*Ø$,ðð ñô ñô ñ	
ô 	
ð 	
ð 	
ð 	
r8   N©rF  rF   r&  r(  r0   r\   ©rC  r'   r&  r(  rL  r(  r0   r\   ©
rP  r®   rQ  r®   rF  rF   r&  r(  r0   r\   ©rN   rO   rP   r   rJ  r<  rU  rQ   r8   r6   rA  rA  y  s€   € € € € € ØAJð 
ð 
ð 
ð 
ð 
ð 
ð& $-Ø+4ð
ð 
ð 
ð 
ð 
ð 
ð> bkð
ð 
ð 
ð 
ð 
ð 
ð 
ð 
r8   rA  c                  ó8   — e Zd Zedœdd„Zedœdd„Zedœdd
„ZdS )r  r%  r&  r(  r0   r\   c          
     ó€   — | j                              t          t          t	          d|dœ¦  «        ¦  «        ¦  «         dS ©z•Send this event to clear the audio bytes in the buffer.

        The server will
        respond with an `input_audio_buffer.cleared` event.
        zinput_audio_buffer.clear©r™   r&  Nr+  ©r5   r&  s     r6   Úclearz&RealtimeInputAudioBufferResource.clearÉ  sI   € ð 	Ô×ÒÝÕ)­?ÐD^ÐltÐ;uÐ;uÑ+vÔ+vÑwÔwñ	
ô 	
ð 	
ð 	
ð 	
r8   c          
     ó€   — | j                              t          t          t	          d|dœ¦  «        ¦  «        ¦  «         dS ©ar  
        Send this event to commit the user input audio buffer, which will create a
        new user message item in the conversation. This event will produce an error
        if the input audio buffer is empty. When in Server VAD mode, the client does
        not need to send this event, the server will commit the audio buffer
        automatically.

        Committing the input audio buffer will trigger input audio transcription
        (if enabled in session configuration), but it will not create a response
        from the model. The server will respond with an `input_audio_buffer.committed`
        event.
        zinput_audio_buffer.commitr]  Nr+  r^  s     r6   Úcommitz'RealtimeInputAudioBufferResource.commitÓ  sI   € ð 	Ô×ÒÝÕ)­?ÐD_ÐmuÐ;vÐ;vÑ+wÔ+wÑxÔxñ	
ô 	
ð 	
ð 	
ð 	
r8   ÚaudiorF   c               ó‚   — | j                              t          t          t	          d||dœ¦  «        ¦  «        ¦  «         dS ©a£  Send this event to append audio bytes to the input audio buffer.

        The audio
        buffer is temporary storage you can write to and later commit. In Server VAD
        mode, the audio buffer is used to detect speech and the server will decide
        when to commit. When Server VAD is disabled, you must commit the audio buffer
        manually.

        The client may choose how much audio to place in each event up to a maximum
        of 15 MiB, for example streaming smaller chunks from the client may allow the
        VAD to be more responsive. Unlike made other client events, the server will
        not send a confirmation response to this event.
        zinput_audio_buffer.append)r™   rc  r&  Nr+  ©r5   rc  r&  s      r6   Úappendz'RealtimeInputAudioBufferResource.appendä  sP   € ð 	Ô×ÒÝÝ(ÝÐ)DÈuÐbjÐ kÐ kÑlÔlñô ñ	
ô 	
ð 	
ð 	
ð 	
r8   N©r&  r(  r0   r\   ©rc  rF   r&  r(  r0   r\   ©rN   rO   rP   r   r_  rb  rg  rQ   r8   r6   r  r  È  s}   € € € € € Ø2;ð 
ð 
ð 
ð 
ð 
ð 
ð 4=ð 
ð 
ð 
ð 
ð 
ð 
ð" @Ið 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
r8   r  c                  ó   — e Zd Zdd„ZdS )Ú#BaseAsyncRealtimeConnectionResourcer}   rq   r0   r\   c                ó   — || _         d S r2   r   r   s     r6   ra   z,BaseAsyncRealtimeConnectionResource.__init__û  r!  r8   N)r}   rq   r0   r\   r"  rQ   r8   r6   rl  rl  ú  r#  r8   rl  c                  ó   — e Zd Zedœd
d„Zd	S )rs   r%  rt   r'  r&  r(  r0   r\   c             ƒ  ó’   K  — | j                              t          t          t	          d||dœ¦  «        ¦  «        ¦  «        ƒ d{V —† dS r*  r+  r,  s      r6   r-  z#AsyncRealtimeSessionResource.update   sr   è è € ð Ô×#Ò#ÝÝ(ÝÐ)9ÀgÐ[cÐ dÐ dÑeÔeñô ñ
ô 
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
r8   Nr.  r/  rQ   r8   r6   rs   rs   ÿ  s5   € € € € € àYbð
ð 
ð 
ð 
ð 
ð 
ð 
ð 
r8   rs   c                  ó.   — e Zd Zeedœdd„Zeedœdd„ZdS )ru   r1  r&  r(  r2  r0   r\   c             ƒ  ó’   K  — | j                              t          t          t	          d||dœ¦  «        ¦  «        ¦  «        ƒ d{V —† dS r4  r+  r5  s      r6   r6  z$AsyncRealtimeResponseResource.cancel  sr   è è € ð Ô×#Ò#ÝÝ(ÝÐ):ÈÐalÐ mÐ mÑnÔnñô ñ
ô 
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
r8   r7  rv   r8  c             ƒ  ó’   K  — | j                              t          t          t	          d||dœ¦  «        ¦  «        ¦  «        ƒ d{V —† dS r:  r+  r;  s      r6   r<  z$AsyncRealtimeResponseResource.create#  sr   è è € ð. Ô×#Ò#ÝÝ(ÝÐ):ÈÐ^fÐ gÐ gÑhÔhñô ñ
ô 
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
r8   Nr=  r>  r?  rQ   r8   r6   ru   ru     s^   € € € € € Ø9BÐbkð 
ð 
ð 
ð 
ð 
ð 
ð" $-ØDMð	
ð 
ð 
ð 
ð 
ð 
ð 
ð 
r8   ru   c                  ó&   — e Zd Zedd„¦   «         ZdS )rw   r0   Ú%AsyncRealtimeConversationItemResourcec                ó*   — t          | j        ¦  «        S r2   )rt  r|   r4   s    r6   rC  z&AsyncRealtimeConversationResource.itemC  s   € å4°TÔ5EÑFÔFÐFr8   N)r0   rt  rD  rQ   r8   r6   rw   rw   B  s8   € € € € € ØðGð Gð Gñ „_ðGð Gð Gr8   rw   c                  ó:   — e Zd Zedœdd„Zeed	œdd„Zedœdd„ZdS )rt  r%  rF  rF   r&  r(  r0   r\   c             ƒ  ó’   K  — | j                              t          t          t	          d||dœ¦  «        ¦  «        ¦  «        ƒ d{V —† dS rH  r+  rI  s      r6   rJ  z,AsyncRealtimeConversationItemResource.deleteI  ss   è è € ð Ô×#Ò#ÝÝ(ÝÐ)CÐPWÐemÐ nÐ nÑoÔoñô ñ
ô 
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
r8   rK  rC  r'   rL  c             ƒ  ó”   K  — | j                              t          t          t	          d|||dœ¦  «        ¦  «        ¦  «        ƒ d{V —† dS rN  r+  rO  s       r6   r<  z,AsyncRealtimeConversationItemResource.createX  s~   è è € ð  Ô×#Ò#ÝÝ(Ýà :Ø $Ø$,Ø,<ð	ð ñô ñ
ô 
ñ
ô 
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
r8   rP  r®   rQ  c             ƒ  ó–   K  — | j                              t          t          t	          d||||dœ¦  «        ¦  «        ¦  «        ƒ d{V —† dS rS  r+  rT  s        r6   rU  z.AsyncRealtimeConversationItemResource.truncatev  s�   è è € ð" Ô×#Ò#ÝÝ(Ýà <Ø(4Ø)6Ø#*Ø$,ðð ñô ñô ñ
ô 
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
r8   NrV  rW  rX  rY  rQ   r8   r6   rt  rt  H  s€   € € € € € ØGPð 
ð 
ð 
ð 
ð 
ð 
ð& $-Ø+4ð
ð 
ð 
ð 
ð 
ð 
ð> bkð
ð 
ð 
ð 
ð 
ð 
ð 
ð 
r8   rt  c                  ó8   — e Zd Zedœdd„Zedœdd„Zedœdd
„ZdS )ry   r%  r&  r(  r0   r\   c          
   ƒ  ó�   K  — | j                              t          t          t	          d|dœ¦  «        ¦  «        ¦  «        ƒ d{V —† dS r\  r+  r^  s     r6   r_  z+AsyncRealtimeInputAudioBufferResource.clear˜  sk   è è € ð Ô×#Ò#ÝÕ)­?ÐD^ÐltÐ;uÐ;uÑ+vÔ+vÑwÔwñ
ô 
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
r8   c          
   ƒ  ó�   K  — | j                              t          t          t	          d|dœ¦  «        ¦  «        ¦  «        ƒ d{V —† dS ra  r+  r^  s     r6   rb  z,AsyncRealtimeInputAudioBufferResource.commit¢  sk   è è € ð Ô×#Ò#ÝÕ)­?ÐD_ÐmuÐ;vÐ;vÑ+wÔ+wÑxÔxñ
ô 
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
r8   rc  rF   c             ƒ  ó’   K  — | j                              t          t          t	          d||dœ¦  «        ¦  «        ¦  «        ƒ d{V —† dS re  r+  rf  s      r6   rg  z,AsyncRealtimeInputAudioBufferResource.append³  sr   è è € ð Ô×#Ò#ÝÝ(ÝÐ)DÈuÐbjÐ kÐ kÑlÔlñô ñ
ô 
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
ð 	
r8   Nrh  ri  rj  rQ   r8   r6   ry   ry   —  s~   € € € € € Ø8Að 
ð 
ð 
ð 
ð 
ð 
ð :Cð 
ð 
ð 
ð 
ð 
ð 
ð" FOð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
r8   ry   )]Ú
__future__r   r¤   ÚloggingÚtypesr   Útypingr   r   r   r   Útyping_extensionsr	   rí   Úpydanticr
   r7   r   r   r   r   r   r   Ú_typesr   r   r   r   Ú_utilsr   r   r   r   r   Ú_compatr   Ú_modelsr   Ú	_resourcer   r   Ú_exceptionsr    Ú_base_clientr!   Útypes.beta.realtimer"   r#   Ú"types.websocket_connection_optionsr$   Ú)types.beta.realtime.realtime_client_eventr%   Ú)types.beta.realtime.realtime_server_eventr&   Ú+types.beta.realtime.conversation_item_paramr'   Ú/types.beta.realtime.realtime_client_event_paramr(   r  r)   r  rÙ   r{   r3   r*   r+   Ú__all__Ú	getLoggerrN   r.   rÃ   r,   r-   r9   rT   r=   rV   rq   rX   r   rG   r  r  r  r  rA  r  rl  rs   ru   rw   rt  ry   rQ   r8   r6   ú<module>r“     s•  ðð #Ð "Ð "Ð "Ð "Ð "Ð "à €€€Ø €€€Ø Ð Ð Ð Ð Ð Ø 5Ð 5Ð 5Ð 5Ð 5Ð 5Ð 5Ð 5Ð 5Ð 5Ð 5Ð 5Ø +Ð +Ð +Ð +Ð +Ð +à €€€Ø Ð Ð Ð Ð Ð ðð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ;Ð :Ð :Ð :Ð :Ð :Ð :Ð :Ð :Ð :Ð :Ð :ðð ð ð ð ð ð ð ð ð ð ð ð ð ð (Ð 'Ð 'Ð 'Ð 'Ð 'Ø 0Ð 0Ð 0Ð 0Ð 0Ð 0Ø ;Ð ;Ð ;Ð ;Ð ;Ð ;Ð ;Ð ;Ø 'Ð 'Ð 'Ð 'Ð 'Ð 'Ø ,Ð ,Ð ,Ð ,Ð ,Ð ,Ø [Ð [Ð [Ð [Ð [Ð [Ð [Ð [Ø MÐ MÐ MÐ MÐ MÐ MØ MÐ MÐ MÐ MÐ MÐ MØ MÐ MÐ MÐ MÐ MÐ MØ QÐ QÐ QÐ QÐ QÐ QØ XÐ XÐ XÐ XÐ XÐ Xàð 0ØNÐNÐNÐNÐNÐNØVÐVÐVÐVÐVÐVà/Ð/Ð/Ð/Ð/Ð/Ð/Ð/à�Ð
'€à'�gÔ'¨Ñ1Ô1€Ð 1Ð 1Ð 1Ñ 1ð1
ð 1
ð 1
ð 1
ð 1
ˆñ 1
ô 1
ð 1
ðh1
ð 1
ð 1
ð 1
ð 1
Ð$ñ 1
ô 1
ð 1
ðh@ð @ð @ð @ð @ñ @ô @ð @ðEð Eð Eð Eð Eñ Eô Eð EðFð Fð Fð Fð Fñ Fô Fð FðKð Kð Kð Kð Kñ Kô Kð KðJ
ð J
ð J
ð J
ð J
ñ J
ô J
ð J
ðZf,ð f,ð f,ð f,ð f,ñ f,ô f,ð f,ðRJ
ð J
ð J
ð J
ð J
ñ J
ô J
ð J
ðZf&ð f&ð f&ð f&ð f&ñ f&ô f&ð f&ðR&ð &ð &ð &ð &ñ &ô &ð &ð

ð 
ð 
ð 
ð 
Ð<ñ 
ô 
ð 
ð&+
ð +
ð +
ð +
ð +
Ð=ñ +
ô +
ð +
ð\Bð Bð Bð Bð BÐ#Añ Bô Bð BðL
ð L
ð L
ð L
ð L
Ð'Eñ L
ô L
ð L
ð^/
ð /
ð /
ð /
ð /
Ð'Eñ /
ô /
ð /
ðd&ð &ð &ð &ð &ñ &ô &ð &ð

ð 
ð 
ð 
ð 
Ð#Fñ 
ô 
ð 
ð*+
ð +
ð +
ð +
ð +
Ð$Gñ +
ô +
ð +
ð\Gð Gð Gð Gð GÐ(Kñ Gô Gð GðL
ð L
ð L
ð L
ð L
Ð,Oñ L
ô L
ð L
ð^/
ð /
ð /
ð /
ð /
Ð,Oñ /
ô /
ð /
ð /
ð /
r8   