§
    ªeîi…   ã                  ór  — d dl 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mZ ddlmZmZ ddlmZ dd	lmZmZ dd
lmZmZ ddlmZmZ ddlmZmZ ddl m!Z! ddl"m#Z# ddgZ$ G d„ de¦  «        Z% G d„ de¦  «        Z& G d„ d¦  «        Z' G d„ d¦  «        Z( G d„ d¦  «        Z) G d„ d¦  «        Z*dS )é    )Úannotations)ÚLiteralNé   )Ú_legacy_response)ÚBodyÚOmitÚQueryÚHeadersÚNotGivenÚomitÚ	not_given)Úpath_templateÚmaybe_transform)Úcached_property)ÚSyncAPIResourceÚAsyncAPIResource)Úto_streamed_response_wrapperÚ"async_to_streamed_response_wrapper)ÚSyncCursorPageÚAsyncCursorPage)ÚAsyncPaginatorÚmake_request_options)Úmessage_list_params)ÚChatCompletionStoreMessageÚMessagesÚAsyncMessagesc                  ó\   — e Zd ZdZedd„¦   «         Zedd„¦   «         Zeeedddedœdd„Z	dS )r   ú_
    Given a list of messages comprising a conversation, the model will return a response.
    ÚreturnÚMessagesWithRawResponsec                ó    — 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
        )r    ©Úselfs    ún/home/div/.hermes/hermes-agent/venv/lib/python3.11/site-packages/openai/resources/chat/completions/messages.pyÚwith_raw_responsezMessages.with_raw_response   s   € õ ' tÑ,Ô,Ð,ó    ÚMessagesWithStreamingResponsec                ó    — 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(   r#   s    r%   Úwith_streaming_responsez Messages.with_streaming_response&   s   € õ -¨TÑ2Ô2Ð2r'   N©ÚafterÚlimitÚorderÚextra_headersÚextra_queryÚ
extra_bodyÚtimeoutÚcompletion_idÚstrr-   ú
str | Omitr.   ú
int | Omitr/   úLiteral['asc', 'desc'] | Omitr0   úHeaders | Noner1   úQuery | Noner2   úBody | Noner3   ú'float | httpx.Timeout | None | NotGivenú*SyncCursorPage[ChatCompletionStoreMessage]c               ó   — |st          d|›�¦  «        ‚|                      t          d|¬¦  «        t          t                   t          ||||t          |||dœt          j        ¦  «        ¬¦  «        t          ¬¦  «        S ©aò  Get the messages in a stored chat completion.

        Only Chat Completions that have
        been created with the `store` parameter set to `true` will be returned.

        Args:
          after: Identifier for the last message from the previous pagination request.

          limit: Number of messages to retrieve.

          order: Sort order for messages by timestamp. Use `asc` for ascending order or `desc`
              for descending order. Defaults to `asc`.

          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        z<Expected a non-empty value for `completion_id` but received z*/chat/completions/{completion_id}/messages)r4   )r-   r.   r/   )r0   r1   r2   r3   Úquery)ÚpageÚoptionsÚmodel)	Ú
ValueErrorÚ_get_api_listr   r   r   r   r   r   ÚMessageListParams©	r$   r4   r-   r.   r/   r0   r1   r2   r3   s	            r%   ÚlistzMessages.list/   s©   € ðF ð 	oÝÐmÐ\iÐmÐmÑnÔnÐnØ×!Ò!ÝÐFÐVcÐdÑdÔdÝÕ :Ô;Ý(Ø+Ø'Ø%ØÝ%à!&Ø!&Ø!&ðð õ
 (Ô9ñô ðñ ô õ -ð# "ñ 
ô 
ð 	
r'   )r   r    )r   r(   )r4   r5   r-   r6   r.   r7   r/   r8   r0   r9   r1   r:   r2   r;   r3   r<   r   r=   ©
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r&   r+   r   r   rH   © r'   r%   r   r      s•   € € € € € ðð ð ð-ð -ð -ñ „_ð-ð ð3ð 3ð 3ñ „_ð3ð !Ø Ø/3ð )-Ø$(Ø"&Ø;Dð7
ð 7
ð 7
ð 7
ð 7
ð 7
ð 7
ð 7
r'   c                  ó\   — e Zd ZdZedd„¦   «         Zedd„¦   «         Zeeedddedœdd„Z	dS )r   r   r   ÚAsyncMessagesWithRawResponsec                ó    — t          | ¦  «        S r"   )rP   r#   s    r%   r&   zAsyncMessages.with_raw_responsen   s   € õ ,¨DÑ1Ô1Ð1r'   Ú"AsyncMessagesWithStreamingResponsec                ó    — t          | ¦  «        S r*   )rR   r#   s    r%   r+   z%AsyncMessages.with_streaming_responsex   s   € õ 2°$Ñ7Ô7Ð7r'   Nr,   r4   r5   r-   r6   r.   r7   r/   r8   r0   r9   r1   r:   r2   r;   r3   r<   úWAsyncPaginator[ChatCompletionStoreMessage, AsyncCursorPage[ChatCompletionStoreMessage]]c               ó   — |st          d|›�¦  «        ‚|                      t          d|¬¦  «        t          t                   t          ||||t          |||dœt          j        ¦  «        ¬¦  «        t          ¬¦  «        S r?   )	rD   rE   r   r   r   r   r   r   rF   rG   s	            r%   rH   zAsyncMessages.list�   s©   € ðF ð 	oÝÐmÐ\iÐmÐmÑnÔnÐnØ×!Ò!ÝÐFÐVcÐdÑdÔdÝ Õ!;Ô<Ý(Ø+Ø'Ø%ØÝ%à!&Ø!&Ø!&ðð õ
 (Ô9ñô ðñ ô õ -ð# "ñ 
ô 
ð 	
r'   )r   rP   )r   rR   )r4   r5   r-   r6   r.   r7   r/   r8   r0   r9   r1   r:   r2   r;   r3   r<   r   rT   rI   rN   r'   r%   r   r   i   s•   € € € € € ðð ð ð2ð 2ð 2ñ „_ð2ð ð8ð 8ð 8ñ „_ð8ð !Ø Ø/3ð )-Ø$(Ø"&Ø;Dð7
ð 7
ð 7
ð 7
ð 7
ð 7
ð 7
ð 7
r'   c                  ó   — e Zd Zdd„ZdS )r    Úmessagesr   r   ÚNonec                óP   — || _         t          j        |j        ¦  «        | _        d S ©N)Ú	_messagesr   Úto_raw_response_wrapperrH   ©r$   rW   s     r%   Ú__init__z MessagesWithRawResponse.__init__¼   s&   € Ø!ˆŒå$Ô<ØŒMñ
ô 
ˆŒ	ˆ	ˆ	r'   N©rW   r   r   rX   ©rJ   rK   rL   r^   rN   r'   r%   r    r    »   ó(   € € € € € ð
ð 
ð 
ð 
ð 
ð 
r'   r    c                  ó   — e Zd Zdd„ZdS )rP   rW   r   r   rX   c                óP   — || _         t          j        |j        ¦  «        | _        d S rZ   )r[   r   Úasync_to_raw_response_wrapperrH   r]   s     r%   r^   z%AsyncMessagesWithRawResponse.__init__Å   s&   € Ø!ˆŒå$ÔBØŒMñ
ô 
ˆŒ	ˆ	ˆ	r'   N©rW   r   r   rX   r`   rN   r'   r%   rP   rP   Ä   ra   r'   rP   c                  ó   — e Zd Zdd„ZdS )r(   rW   r   r   rX   c                óF   — || _         t          |j        ¦  «        | _        d S rZ   )r[   r   rH   r]   s     r%   r^   z&MessagesWithStreamingResponse.__init__Î   s#   € Ø!ˆŒå0ØŒMñ
ô 
ˆŒ	ˆ	ˆ	r'   Nr_   r`   rN   r'   r%   r(   r(   Í   ra   r'   r(   c                  ó   — e Zd Zdd„ZdS )rR   rW   r   r   rX   c                óF   — || _         t          |j        ¦  «        | _        d S rZ   )r[   r   rH   r]   s     r%   r^   z+AsyncMessagesWithStreamingResponse.__init__×   s#   € Ø!ˆŒå6ØŒMñ
ô 
ˆŒ	ˆ	ˆ	r'   Nre   r`   rN   r'   r%   rR   rR   Ö   ra   r'   rR   )+Ú
__future__r   Útyping_extensionsr   ÚhttpxÚ r   Ú_typesr   r   r	   r
   r   r   r   Ú_utilsr   r   Ú_compatr   Ú	_resourcer   r   Ú	_responser   r   Ú
paginationr   r   Ú_base_clientr   r   Útypes.chat.completionsr   Ú(types.chat.chat_completion_store_messager   Ú__all__r   r   r    rP   r(   rR   rN   r'   r%   ú<module>rx      sE  ðð #Ð "Ð "Ð "Ð "Ð "à %Ð %Ð %Ð %Ð %Ð %à €€€à !Ð !Ð !Ð !Ð !Ð !Ø LÐ LÐ LÐ LÐ LÐ LÐ LÐ LÐ LÐ LÐ LÐ LÐ LÐ LÐ LÐ LÐ LÐ LØ 5Ð 5Ð 5Ð 5Ð 5Ð 5Ð 5Ð 5Ø 'Ð 'Ð 'Ð 'Ð 'Ð 'Ø ;Ð ;Ð ;Ð ;Ð ;Ð ;Ð ;Ð ;Ø ZÐ ZÐ ZÐ ZÐ ZÐ ZÐ ZÐ ZØ :Ð :Ð :Ð :Ð :Ð :Ð :Ð :Ø AÐ AÐ AÐ AÐ AÐ AÐ AÐ AØ :Ð :Ð :Ð :Ð :Ð :Ø SÐ SÐ SÐ SÐ SÐ Sà�Ð
'€ðO
ð O
ð O
ð O
ð O
ˆñ O
ô O
ð O
ðdO
ð O
ð O
ð O
ð O
Ð$ñ O
ô O
ð O
ðd
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð
ð 
ð 
ð 
ð 
ñ 
ô 
ð 
ð 
ð 
r'   