Ë
    ïÏj’$  ã                  óL  — d dl mZ d dlmZmZmZ d dlZddlm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 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*y)é    )Úannotations)ÚUnionÚIterableÚOptionalNé   )Ú_legacy_response)Údecision_create_params)ÚBodyÚOmitÚQueryÚHeadersÚNotGivenÚomitÚ	not_given)Úmaybe_transformÚasync_maybe_transform)Úcached_property)ÚSyncAPIResourceÚAsyncAPIResource)Úto_streamed_response_wrapperÚ"async_to_streamed_response_wrapper)Úmake_request_options)ÚDecision)ÚDecisionInputMessageParamÚ	DecisionsÚAsyncDecisionsc                  óh   — e Zd Zedd„«       Zedd„«       Zedddedœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Zy)	r   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
        )ÚDecisionsWithRawResponse©Úselfs    úW/var/www/html/gaurav-v2/venv/lib/python3.12/site-packages/openai/resources/decisions.pyÚwith_raw_responsezDecisions.with_raw_response   s   € ô (¨Ó-Ð-ó    c                ó   — 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
        )ÚDecisionsWithStreamingResponser!   s    r#   Úwith_streaming_responsez!Decisions.with_streaming_response"   s   € ô .¨dÓ3Ð3r%   N©Úsafety_identifierÚextra_headersÚextra_queryÚ
extra_bodyÚtimeoutc               óŽ   — | j                  dt        ||||dœt        j                  «      t	        ||||ddi¬«      t
        ¬«      S )õ2  
        Use this endpoint to ask classification or scoring questions about the same
        input. Youâ€™ll get the answers back in the order you asked the questions.

        For text, you can pass a string. You can also send user messages containing
        `input_text` and `input_image` parts, with up to 128 images per request. Images
        can be base64 data URLs or publicly accessible HTTP(S) URLs. File IDs arenâ€™t
        accepted. Other message roles, function calls, files, audio, and item references
        arenâ€™t supported.

        Sometimes a question returns a refusal instead of an answer. The result has type
        `refusal` and includes the questionâ€™s name, or `null` if you didnâ€™t give it one.

        Args:
          input: The text or images to evaluate for every question. Provide a text string or user
              messages containing text and images. Images can be base64 data URLs or publicly
              accessible HTTP(S) URLs; at most 128 images are allowed across all messages in
              one request. Files, audio, tools, and item references are not supported.

          safety_identifier: Opaque caller-provided end-user identifier, scoped by the verified org. Match
              Responses' limit; this is never the authenticated user identity.

          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
        ú
/decisions©ÚmodelÚinputÚ	questionsr+   Úbearer_authT©r,   r-   r.   r/   Úsecurity©ÚbodyÚoptionsÚcast_to)Ú_postr   r	   ÚDecisionCreateParamsr   r   ©	r"   r5   r4   r6   r+   r,   r-   r.   r/   s	            r#   ÚcreatezDecisions.create+   se   € ðX �z‰zØÜ à"Ø"Ø!*Ø):ñ	ô '×;Ñ;óô )Ø+Ø'Ø%ØØ'¨Ð.ôô ð% ó 
ð 	
r%   )Úreturnr    )rB   r(   ©r5   z/Union[str, Iterable[DecisionInputMessageParam]]r4   Ústrr6   z)Iterable[decision_create_params.Question]r+   zOptional[str] | Omitr,   zHeaders | Noner-   zQuery | Noner.   zBody | Noner/   z(float | httpx2.Timeout | None | NotGivenrB   r   ©	Ú__name__Ú
__module__Ú__qualname__r   r$   r)   r   r   rA   © r%   r#   r   r      sš   „ Øò.ó ð.ð ò4ó ð4ð 37ð )-Ø$(Ø"&Ø<Eñ?
ð ?ð?
ð ð	?
ð
 =ð?
ð 0ð?
ð &ð?
ð "ð?
ð  ð?
ð :ð?
ð 
ô?
r%   c                  óh   — e Zd Zedd„«       Zedd„«       Zedddedœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Zy)	r   c                ó   — t        | «      S r   )ÚAsyncDecisionsWithRawResponser!   s    r#   r$   z AsyncDecisions.with_raw_responsen   s   € ô -¨TÓ2Ð2r%   c                ó   — t        | «      S r'   )Ú#AsyncDecisionsWithStreamingResponser!   s    r#   r)   z&AsyncDecisions.with_streaming_responsex   s   € ô 3°4Ó8Ð8r%   Nr*   c             ƒ  ó¾   K  — | j                  dt        ||||dœt        j                  «      ƒ d{  –—† t	        ||||ddi¬«      t
        ¬«      ƒ d{  –—† S 7 Œ'7 Œ­w)r1   r2   r3   Nr7   Tr8   r:   )r>   r   r	   r?   r   r   r@   s	            r#   rA   zAsyncDecisions.create�   s~   è ø€ ðX —Z‘ZØÜ,à"Ø"Ø!*Ø):ñ	ô '×;Ñ;ó÷ ô )Ø+Ø'Ø%ØØ'¨Ð.ôô ð%  ó 
÷ 
ð 	
ðøð
ús!   ‚/A±A
²"AÁAÁAÁA)rB   rL   )rB   rN   rC   rE   rI   r%   r#   r   r   m   sš   „ Øò3ó ð3ð ò9ó ð9ð 37ð )-Ø$(Ø"&Ø<Eñ?
ð ?ð?
ð ð	?
ð
 =ð?
ð 0ð?
ð &ð?
ð "ð?
ð  ð?
ð :ð?
ð 
ô?
r%   c                  ó   — e Zd Zdd„Zy)r    c                óZ   — || _         t        j                  |j                  «      | _        y ©N)Ú
_decisionsr   Úto_raw_response_wrapperrA   ©r"   Ú	decisionss     r#   Ú__init__z!DecisionsWithRawResponse.__init__Ä   s$   € Ø#ˆŒä&×>Ñ>Ø×Ñó
ˆ�r%   N©rV   r   rB   ÚNone©rF   rG   rH   rW   rI   r%   r#   r    r    Ã   ó   „ ô
r%   r    c                  ó   — e Zd Zdd„Zy)rL   c                óZ   — || _         t        j                  |j                  «      | _        y rR   )rS   r   Úasync_to_raw_response_wrapperrA   rU   s     r#   rW   z&AsyncDecisionsWithRawResponse.__init__Í   s$   € Ø#ˆŒä&×DÑDØ×Ñó
ˆ�r%   N©rV   r   rB   rY   rZ   rI   r%   r#   rL   rL   Ì   r[   r%   rL   c                  ó   — e Zd Zdd„Zy)r(   c                óF   — || _         t        |j                  «      | _        y rR   )rS   r   rA   rU   s     r#   rW   z'DecisionsWithStreamingResponse.__init__Ö   s   € Ø#ˆŒä2Ø×Ñó
ˆ�r%   NrX   rZ   rI   r%   r#   r(   r(   Õ   r[   r%   r(   c                  ó   — e Zd Zdd„Zy)rN   c                óF   — || _         t        |j                  «      | _        y rR   )rS   r   rA   rU   s     r#   rW   z,AsyncDecisionsWithStreamingResponse.__init__ß   s   € Ø#ˆŒä8Ø×Ñó
ˆ�r%   Nr_   rZ   rI   r%   r#   rN   rN   Þ   r[   r%   rN   )+Ú
__future__r   Útypingr   r   r   Úhttpx2Ú r   Útypesr	   Ú_typesr
   r   r   r   r   r   r   Ú_utilsr   r   Ú_compatr   Ú	_resourcer   r   Ú	_responser   r   Ú_base_clientr   Útypes.decisionr   Ú"types.decision_input_message_paramr   Ú__all__r   r   r    rL   r(   rN   rI   r%   r#   Ú<module>rr      s‰   ðõ #ç ,Ñ ,ã å Ý *ß J× JÑ Jß ;Ý %ß 9ß XÝ /Ý %Ý JàÐ(Ð
)€ôS
�ô S
ôlS
Ð%ô S
÷l
ñ 
÷
ñ 
÷
ñ 
÷
ò 
r%   