o
    ùT·jÔ%  ã                   @  sP  d dl mZ d dl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mZ ddlmZmZ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l*m+Z+ ddgZ,G dd„ deƒZ-G dd„ deƒZ.G dd„ dƒZ/G dd„ dƒZ0G dd„ dƒZ1G dd„ dƒZ2dS )é    )Úannotations)ÚAnyÚListÚcast)ÚLiteralNé   )Ú_legacy_response)ÚBodyÚOmitÚQueryÚHeadersÚNotGivenÚomitÚ	not_given)Úis_givenÚpath_templateÚmaybe_transformÚstrip_not_given)Úcached_property)ÚSyncAPIResourceÚAsyncAPIResource)Úto_streamed_response_wrapperÚ"async_to_streamed_response_wrapper)ÚSyncCursorPageÚAsyncCursorPage)ÚAsyncPaginatorÚmake_request_options)Úinput_item_list_params)ÚBetaResponseItem)ÚBetaResponseIncludableÚ
InputItemsÚAsyncInputItemsc                
   @  óL   e Zd ZdZed"dd„ƒZed#dd„ƒZeeeeed	d	d	ed
œ	d$d d!„Z	d	S )%r    ú"Create and manage model responses.ÚreturnÚInputItemsWithRawResponsec                 C  ó   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%   ©Úself© r*   ún/home/dinkstrade/pdmp-scanner/venv/lib/python3.10/site-packages/openai/resources/beta/responses/input_items.pyÚwith_raw_response   ó   zInputItems.with_raw_responseÚInputItemsWithStreamingResponsec                 C  r&   ©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(   r*   r*   r+   Úwith_streaming_response&   ó   z"InputItems.with_streaming_responseN©	ÚafterÚincludeÚlimitÚorderÚbetasÚextra_headersÚextra_queryÚ
extra_bodyÚtimeoutÚresponse_idÚstrr3   ú
str | Omitr4   ú#List[BetaResponseIncludable] | Omitr5   ú
int | Omitr6   úLiteral['asc', 'desc'] | Omitr7   ú0List[Literal['responses_multi_agent=v1']] | Omitr8   úHeaders | Noner9   úQuery | Noner:   úBody | Noner;   ú(float | httpx2.Timeout | None | NotGivenú SyncCursorPage[BetaResponseItem]c       	         C  ó�   |s	t d|›�ƒ‚i tdt|ƒrd dd„ |D ƒ¡ntiƒ¥|p!i ¥}| jtd|d�tt t	|||	|
t
||||dœtjƒd	d
id�tttƒd�S )áª  
        Returns a list of input items for a given response.

        Args:
          after: An item ID to list items after, used in pagination.

          include: Additional fields to include in the response. See the `include` parameter for
              Response creation above for more information.

          limit: A limit on the number of objects to be returned. Limit can range between 1 and
              100, and the default is 20.

          order: The order to return the input items in. Default is `desc`.

              - `asc`: Return the input items in ascending order.
              - `desc`: Return the input items in descending order.

          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
        ú:Expected a non-empty value for `response_id` but received úopenai-betaú,c                 s  ó   � | ]}t |ƒV  qd S ©N©r=   ©Ú.0Úer*   r*   r+   Ú	<genexpr>[   ó   € z"InputItems.list.<locals>.<genexpr>ú./responses/{response_id}/input_items?beta=true©r<   ©r3   r4   r5   r6   Úbearer_authT©r8   r9   r:   r;   ÚqueryÚsecurity©ÚpageÚoptionsÚmodel)Ú
ValueErrorr   r   Újoinr   Ú_get_api_listr   r   r   r   r   r   ÚInputItemListParamsr   r   ©r)   r<   r3   r4   r5   r6   r7   r8   r9   r:   r;   r*   r*   r+   Úlist/   ó6   )&ÿþ
üù	òízInputItems.list)r$   r%   )r$   r.   )r<   r=   r3   r>   r4   r?   r5   r@   r6   rA   r7   rB   r8   rC   r9   rD   r:   rE   r;   rF   r$   rG   ©
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r,   r0   r   r   re   r*   r*   r*   r+   r       ó     	òc                
   @  r"   )%r!   r#   r$   ÚAsyncInputItemsWithRawResponsec                 C  r&   r'   )rm   r(   r*   r*   r+   r,   x   r-   z!AsyncInputItems.with_raw_responseÚ$AsyncInputItemsWithStreamingResponsec                 C  r&   r/   )rn   r(   r*   r*   r+   r0   ‚   r1   z'AsyncInputItems.with_streaming_responseNr2   r<   r=   r3   r>   r4   r?   r5   r@   r6   rA   r7   rB   r8   rC   r9   rD   r:   rE   r;   rF   úCAsyncPaginator[BetaResponseItem, AsyncCursorPage[BetaResponseItem]]c       	         C  rH   )rI   rJ   rK   rL   c                 s  rM   rN   rO   rP   r*   r*   r+   rS   ·   rT   z'AsyncInputItems.list.<locals>.<genexpr>rU   rV   rW   rX   TrY   r\   )r`   r   r   ra   r   rb   r   r   r   r   r   r   rc   r   r   rd   r*   r*   r+   re   ‹   rf   zAsyncInputItems.list)r$   rm   )r$   rn   )r<   r=   r3   r>   r4   r?   r5   r@   r6   rA   r7   rB   r8   rC   r9   rD   r:   rE   r;   rF   r$   ro   rg   r*   r*   r*   r+   r!   u   rl   c                   @  ó   e Zd Zddd„ZdS )	r%   Úinput_itemsr    r$   ÚNonec                 C  ó   || _ t |j¡| _d S rN   )Ú_input_itemsr   Úto_raw_response_wrapperre   ©r)   rq   r*   r*   r+   Ú__init__Ò   ó   
ÿz"InputItemsWithRawResponse.__init__N©rq   r    r$   rr   ©rh   ri   rj   rw   r*   r*   r*   r+   r%   Ñ   ó    r%   c                   @  rp   )	rm   rq   r!   r$   rr   c                 C  rs   rN   )rt   r   Úasync_to_raw_response_wrapperre   rv   r*   r*   r+   rw   Û   rx   z'AsyncInputItemsWithRawResponse.__init__N©rq   r!   r$   rr   rz   r*   r*   r*   r+   rm   Ú   r{   rm   c                   @  rp   )	r.   rq   r    r$   rr   c                 C  ó   || _ t|jƒ| _d S rN   )rt   r   re   rv   r*   r*   r+   rw   ä   ó   
ÿz(InputItemsWithStreamingResponse.__init__Nry   rz   r*   r*   r*   r+   r.   ã   r{   r.   c                   @  rp   )	rn   rq   r!   r$   rr   c                 C  r~   rN   )rt   r   re   rv   r*   r*   r+   rw   í   r   z-AsyncInputItemsWithStreamingResponse.__init__Nr}   rz   r*   r*   r*   r+   rn   ì   r{   rn   )3Ú
__future__r   Útypingr   r   r   Útyping_extensionsr   Úhttpx2Ú r   Ú_typesr	   r
   r   r   r   r   r   Ú_utilsr   r   r   r   Ú_compatr   Ú	_resourcer   r   Ú	_responser   r   Ú
paginationr   r   Ú_base_clientr   r   Útypes.beta.responsesr   Útypes.beta.beta_response_itemr   Ú#types.beta.beta_response_includabler   Ú__all__r    r!   r%   rm   r.   rn   r*   r*   r*   r+   Ú<module>   s,   $\\			