o
    î6Wj±  ã                   @  s*  d dl mZ d dlZd dlmZmZmZmZ d dlm	Z	m
Z
 d dlZddlmZmZ ddlmZ ddlmZmZmZmZmZmZmZmZ dd	l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*m+Z+m,Z, ddl-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3 ddl4m5Z5m6Z6 ddl7m8Z8 d;dd„Z9d<dd„Z:d=d d!„Z;d>d%d&„Z<d?d'd(„Z=erßdd)l>m?Z?m@Z@mAZAmBZB dd*lCmDZDmEZE dd+lFmGZGmHZH dd,lImJZJmKZK dd-lLmMZMmNZN g d.¢ZOG d/d0„ d0e*ƒZPG d1d2„ d2e+ƒZQG d3d4„ d4ƒZRG d5d6„ d6ƒZSG d7d8„ d8ƒZTG d9d:„ d:ƒZUePZVeQZWdS )@é    )ÚannotationsN)ÚTYPE_CHECKINGÚAnyÚMappingÚSequence)ÚSelfÚoverrideé   )Ú
_constantsÚ_exceptions©ÚQuerystring)ÚOmitÚHeadersÚTimeoutÚNotGivenÚ	TransportÚProxiesTypesÚRequestOptionsÚ	not_given)Úis_givenÚis_mapping_tÚget_async_library)Úcached_property)Ú__version__)ÚStreamÚAsyncStream)ÚAPIStatusError)ÚMiddlewareInput)ÚDEFAULT_MAX_RETRIESÚSyncAPIClientÚAsyncAPIClientÚmerge_headers)Ú
TokenCacheÚInMemoryConfigÚAccessTokenAuthÚCredentialsFileÚAccessTokenProviderÚdefault_credentials)Ú&warn_env_static_shadows_auto_discoveryÚ(warn_explicit_static_shadows_credentials)Ú"_has_auto_discoverable_credentialsÚclientÚobjectÚreturnÚboolc                 C  s   t | ƒttfv S )a0  True only for the base ``Anthropic`` / ``AsyncAnthropic`` classes, not subclasses.

    Subclasses (``AnthropicAWS``, ``AnthropicFoundry``) have their own auth paths
    and must not run the credential chain or forward ``credentials`` through their
    ``__init__`` (which doesn't accept the kwarg).
    )ÚtypeÚ	AnthropicÚAsyncAnthropic)r,   © r3   ú`/home/esfera/Documents/content_generation/venv/lib/python3.10/site-packages/anthropic/_client.pyÚ_is_base_client8   s   r5   ÚcredentialsÚNonec                 C  s"   t | ddƒ}|dur|ƒ  dS dS )zPRelease any resources owned by a credential provider, if it exposes ``close()``.ÚcloseN)Úgetattr)r6   r8   r3   r3   r4   Ú_close_credentialsB   s   
ÿr:   úAccessTokenProvider | NoneÚbase_urlÚstrc                 C  s$   t | ddƒ}t|ƒr||ƒ dS dS )u‘  If the credential provider supports ``bind_base_url``, pass it the
    client's resolved ``base_url`` so the token exchange and API calls hit
    the same deployment without the caller passing the URL twice.

    Providers without the hook (plain callables, custom impls) are left
    untouched and MUST resolve their own token-exchange ``base_url`` â€” the
    client does not second-guess them.
    Úbind_base_urlN)r9   Úcallable)r6   r<   Úbindr3   r3   r4   Ú_bind_credentials_base_urlI   s   	ÿrA   Úapi_keyú
str | NoneÚ
auth_tokenc                 C  s4   |du rdS | durt dƒ |durt dƒ dS dS )zÉWarn when an explicit ``api_key=`` / ``auth_token=`` argument shadows
    an explicit ``credentials=`` provider. Call *after* any copy-inheritance
    merging so the params reflect the resolved values.NrB   rD   )r*   ©rB   rD   r6   r3   r3   r4   Ú_warn_explicit_shadowW   s   ÿrF   c                 C  sN   t ƒ sdS | durtj d¡rtdƒ |dur#tj d¡r%tdƒ dS dS dS )av  Warn when an ``ANTHROPIC_API_KEY`` / ``ANTHROPIC_AUTH_TOKEN`` from the
    environment is set alongside signals that would normally drive profile /
    federation auto-discovery (``ANTHROPIC_PROFILE``, a ``configs/`` directory,
    or the workload-identity env trio). Per the credential-precedence spec,
    the static credential wins and auto-discovery is silently skipped.NÚANTHROPIC_API_KEYÚANTHROPIC_AUTH_TOKEN)r+   ÚosÚenvironÚgetr)   ©rB   rD   r3   r3   r4   Ú_warn_env_shadowc   s   ÿrM   )ÚbetaÚmodelsÚmessagesÚcompletions)ÚModelsÚAsyncModels)ÚBetaÚ	AsyncBeta)ÚCompletionsÚAsyncCompletions)ÚMessagesÚAsyncMessages)r   r   r   r   r1   r2   ÚClientÚAsyncClientc                      ó¶  e Zd ZU ded< ded< ded< ded< ded< d	ed
< ejZejZdddddddeedddddedœdh‡ fd$d%„Z	e
did'd(„ƒZe
djd*d+„ƒZe
dkd-d.„ƒZe
dld0d1„ƒZe
dmd3d4„ƒZe
dnd6d7„ƒZeedod9d:„ƒƒZeedpd<d=„ƒƒZedpd>d?„ƒZedpd@dA„ƒZeedq‡ fdCdD„ƒƒZedrdHdI„ƒZeedsdKdL„ƒƒZedt‡ fdOdP„ƒZedu‡ fdQdR„ƒZddeddddededdddei dSœdvd\d]„ZeZdwd_d`„Zedxdfdg„ƒZ‡  Z S )yr1   rC   rB   rD   Úwebhook_keyr;   r6   úTokenCache | NoneÚ_token_cacheúAccessTokenAuth | NoneÚ_custom_authNF©rB   rD   r6   ÚconfigÚprofiler]   r<   ÚtimeoutÚmax_retriesÚdefault_headersÚdefault_queryÚhttp_clientÚ
middlewareÚ_strict_response_validationr_   rc   úMapping[str, Any] | Nonerd   r<   ústr | httpx.URL | Nonere   ú!float | Timeout | None | NotGivenrf   Úintrg   úMapping[str, str] | Nonerh   úMapping[str, object] | Noneri   úhttpx.Client | Nonerj   ú Sequence[MiddlewareInput] | Nonerk   r/   úTokenCache | None | NotGivenr.   r7   c                  ó¤  |dup|dup|dup|dup|du}|s"t j d¡}t j d¡}|| _|| _|du r2t j d¡}|| _|du r?t j d¡}|du}|du rId}t j d¡}|dur„i }| d¡D ]}| d	¡}|d
krw||d d…  ¡ ||d|…  ¡ < qZi |¥t	|
ƒr�|
ni ¥}
i }|dur«|dus’|dur–t
dƒ‚tt|ƒƒ}|}| ¡ }|sª|jrª|j}n|durÊ|dur·t
dƒ‚t|d�}|}| ¡ }|sÊ|jrÊ|j}|du r÷|du r÷|du r÷t| ƒr÷t|rát|ƒndd�}|dur÷|j}|j}|s÷|jr÷|j}t|t|ƒƒ || _t|||d� t||d� t|tƒ�s|| _n|du�r!t|ƒnd| _| jdu�r/t| jƒnd| _|�r>i |¥|
�p<i ¥}
tƒ j t!||	|||
|||d�	 t"| _#dS )ud  Construct a new synchronous Anthropic client instance.

        Credentials are resolved in the following order (first match wins):

        1. Explicit constructor arguments â€” ``api_key=``, ``auth_token=``,
           ``credentials=``, ``config=``, or ``profile=``. When any of these
           is passed, environment variables are not consulted for credentials.
        2. ``ANTHROPIC_API_KEY`` / ``ANTHROPIC_AUTH_TOKEN`` environment
           variables.
        3. ``ANTHROPIC_PROFILE`` environment variable â€” loads the named
           profile from ``<config_dir>/configs/<profile>.json``.
        4. Workload identity federation environment variables â€”
           ``ANTHROPIC_IDENTITY_TOKEN[_FILE]`` +
           ``ANTHROPIC_FEDERATION_RULE_ID`` + ``ANTHROPIC_ORGANIZATION_ID``.
        5. The active profile on disk â€” the profile named by
           ``<config_dir>/active_config``, or ``default``.

        ``credentials=``, ``config=``, and ``profile=`` are mutually exclusive.

        If a static credential is supplied alongside a credentials provider
        (``credentials=`` / ``config=`` / ``profile=``), or if
        ``ANTHROPIC_API_KEY`` / ``ANTHROPIC_AUTH_TOKEN`` is set alongside a
        profile or federation configuration, the static credential takes
        precedence and a one-shot warning is logged on the ``anthropic``
        logger.
        NrG   rH   ÚANTHROPIC_WEBHOOK_SIGNING_KEYÚANTHROPIC_BASE_URLúhttps://api.anthropic.comÚANTHROPIC_CUSTOM_HEADERSÚ
ú:r   r	   ú=Pass at most one of `credentials=`, `config=`, or `profile=`.©rd   ©r<   rE   rL   ©	Úversionr<   rf   re   ri   Úcustom_headersÚcustom_queryrj   rk   )$rI   rJ   rK   rB   rD   r]   ÚsplitÚfindÚstripr   Ú	TypeErrorr$   ÚdictÚextra_headersÚresolved_base_urlr&   r5   r(   r=   Úproviderr<   rA   r6   rF   rM   Ú
isinstancer   r_   r#   r%   ra   ÚsuperÚ__init__r   r   Ú_default_stream_cls©ÚselfrB   rD   r6   rc   rd   r]   r<   re   rf   rg   rh   ri   rj   rk   r_   Úhas_explicit_credentialÚbase_url_is_explicitÚcustom_headers_envÚparsedÚlineÚcolonÚcredential_headersÚ	in_memoryÚ
creds_fileÚresult©Ú	__class__r3   r4   r�   “   óœ   <ÿþýû
$€
€

 
÷
zAnthropic.__init__rV   c                 C  ó   ddl m} || ƒS )Nr	   )rV   )Úresources.completionsrV   )r�   rV   r3   r3   r4   rQ   '  ó   zAnthropic.completionsrX   c                 C  rž   )Nr	   )rX   )Úresources.messagesrX   )r�   rX   r3   r3   r4   rP   -  r    zAnthropic.messagesrR   c                 C  rž   )Nr	   )rR   )Úresources.modelsrR   )r�   rR   r3   r3   r4   rO   3  r    zAnthropic.modelsrT   c                 C  rž   )Nr	   )rT   )Úresources.betarT   )r�   rT   r3   r3   r4   rN   9  r    zAnthropic.betaÚAnthropicWithRawResponsec                 C  ó   t | ƒS ©N)r¤   ©r�   r3   r3   r4   Úwith_raw_response?  ó   zAnthropic.with_raw_responseÚAnthropicWithStreamedResponsec                 C  r¥   r¦   )rª   r§   r3   r3   r4   Úwith_streaming_responseC  r©   z!Anthropic.with_streaming_responser   c                 C  ó
   t dd�S ©NÚbrackets)Úarray_formatr   r§   r3   r3   r4   ÚqsG  ó   
zAnthropic.qsúdict[str, str]c                 C  ó   i | j ¥| j¥S r¦   ©Ú_api_key_authÚ_bearer_authr§   r3   r3   r4   Úauth_headersL  ó   zAnthropic.auth_headersc                 C  ó   | j }|d u r	i S d|iS ©Nú	X-Api-Key©rB   ©r�   rB   r3   r3   r4   rµ   Q  ó   zAnthropic._api_key_authc                 C  ó    | j }|d u r	i S dd|› �iS ©NÚAuthorizationzBearer ©rD   ©r�   rD   r3   r3   r4   r¶   X  ó   zAnthropic._bearer_authúdict[str, str | Omit]c                   s   i t ƒ j¥dddœ¥| j¥S )NÚfalseú
2023-06-01©zX-Stainless-Asynczanthropic-version)rŒ   rg   Ú_custom_headersr§   r›   r3   r4   rg   e  s   ÿýüzAnthropic.default_headersÚheadersr   r�   c                 C  ó~   | j d ur| d¡s| d¡sd S | d¡s| d¡rd S | d¡s*t| d¡tƒr,d S | d¡s9t| d¡tƒr;d S tdƒ‚©Nr»   rÁ   z»"Could not resolve authentication method. Expected one of api_key, auth_token, or credentials to be set. Or for one of the `X-Api-Key` or `Authorization` headers to be explicitly omitted"©r_   rK   r‹   r   r†   ©r�   rÊ   r�   r3   r3   r4   Ú_validate_headerso  s   	ÿzAnthropic._validate_headersúhttpx.Auth | Nonec                 C  ó   | j S r¦   ©ra   r§   r3   r3   r4   Úcustom_authŠ  ó   zAnthropic.custom_authÚresponseúhttpx.Responsec                   ó@   |j dkr| jd ur| j ¡  |jj d¡dkrdS tƒ  |¡S ©Né‘  zx-stainless-retry-countÚ0T©Ústatus_coder_   Ú
invalidateÚrequestrÊ   rK   rŒ   Ú_should_retry©r�   rÕ   r›   r3   r4   rß   �  ó
   	
zAnthropic._should_retryc                   s   t ƒ  ¡  t| jƒ d S r¦   ©rŒ   r8   r:   r6   r§   r›   r3   r4   r8   ž  s   
zAnthropic.close©rB   rD   r6   rc   rd   r]   r<   re   ri   rf   rg   Úset_default_headersrh   Úset_default_queryrj   Ú_extra_kwargsú%AccessTokenProvider | None | NotGivenúint | NotGivenrä   rå   ú+Sequence[MiddlewareInput] | None | NotGivenræ   úMapping[str, Any]r   c                C  ó”  |dur|durt dƒ‚|dur|durt dƒ‚| j}|dur%t||ƒ}n|dur+|}| j}|dur9i |¥|¥}n|dur?|}|	pC| j}	|dur\t|tƒrQ|durUtdƒ‚d|i|¥}n8|durpt|tƒsitdƒ‚d|i|¥}n$t|tƒrx| jn|}|dur”t	| ƒr”d|i|¥}t|tƒr”d| j
i|¥}| jd
|p›| j|pŸ| j|p£| j|p§| jt|tƒr¯| jn||	t|
ƒr·|
n| j||t|tƒrÃ| jn|d	œ
|¤ŽS ©z~
        Create a new client instance re-using the same options given to the current client with optional overriding.
        NzPThe `default_headers` and `set_default_headers` arguments are mutually exclusivezLThe `default_query` and `set_default_query` arguments are mutually exclusiver|   rc   rd   r6   r_   )
rB   rD   r]   r<   re   ri   rf   rg   rh   rj   r3   ©Ú
ValueErrorrÉ   r"   Ú_custom_queryÚ_clientr‹   r   r†   r6   r5   r_   rœ   rB   rD   r]   r<   re   r   rf   Ú_middleware©r�   rB   rD   r6   rc   rd   r]   r<   re   ri   rf   rg   rä   rh   rå   rj   ræ   rÊ   ÚparamsÚresolved_credentialsr3   r3   r4   Úcopy¥  óT   


öõzAnthropic.copyr   c                 G  ó   | j g | j¢|¢d�S ©zþA new client with the given middleware appended after this client's middleware.

        Convenience for applying extra middleware to a single request:

        ```py
        client.with_middleware(my_middleware).messages.create(...)
        ```
        )rj   ©rõ   rñ   ©r�   rj   r3   r3   r4   Úwith_middlewareô  ó   	zAnthropic.with_middlewareÚerr_msgr=   Úbodyr-   r   c                C  ó  |j dkrtj|||d�S |j dkrtj|||d�S |j dkr'tj|||d�S |j dkr4tj|||d�S |j dkrAtj|||d�S |j dkrNtj|||d�S |j dkr[tj|||d�S |j d	krhtj	|||d�S |j d
krutj
|||d�S |j dkr‚tj|||d�S t|||d�S ©Ni�  )rÕ   rþ   rÙ   i“  i”  i™  i�  i¦  i­  i  iô  ©rÜ   r   ÚBadRequestErrorÚAuthenticationErrorÚPermissionDeniedErrorÚNotFoundErrorÚConflictErrorÚRequestTooLargeErrorÚUnprocessableEntityErrorÚRateLimitErrorÚOverloadedErrorÚInternalServerErrorr   ©r�   rý   rþ   rÕ   r3   r3   r4   Ú_make_status_errorÿ  ó*   









zAnthropic._make_status_error) rB   rC   rD   rC   r6   r;   rc   rl   rd   rC   r]   rC   r<   rm   re   rn   rf   ro   rg   rp   rh   rq   ri   rr   rj   rs   rk   r/   r_   rt   r.   r7   )r.   rV   )r.   rX   )r.   rR   )r.   rT   )r.   r¤   )r.   rª   ©r.   r   ©r.   r²   ©r.   rÅ   ©rÊ   r   r�   r   r.   r7   ©r.   rÐ   ©rÕ   rÖ   r.   r/   ©r.   r7   )"rB   rC   rD   rC   r6   rç   rc   rl   rd   rC   r]   rC   r<   rm   re   rn   ri   rr   rf   rè   rg   rp   rä   rp   rh   rq   rå   rq   rj   ré   ræ   rê   r.   r   ©rj   r   r.   r   ©rý   r=   rþ   r-   rÕ   rÖ   r.   r   ©!Ú__name__Ú
__module__Ú__qualname__Ú__annotations__r
   ÚHUMAN_PROMPTÚ	AI_PROMPTr   r   r�   r   rQ   rP   rO   rN   r¨   r«   Úpropertyr   r°   r·   rµ   r¶   rg   rÏ   rÓ   rß   r8   rõ   Úwith_optionsrû   r  Ú__classcell__r3   r3   r›   r4   r1   †   s¢   
 	ä 	îM
r1   c                      r\   )yr2   rC   rB   rD   r]   r;   r6   r^   r_   r`   ra   NFrb   rc   rl   rd   r<   rm   re   rn   rf   ro   rg   rp   rh   rq   ri   úhttpx.AsyncClient | Nonerj   rs   rk   r/   rt   r.   r7   c                  ru   )uc  Construct a new async AsyncAnthropic client instance.

        Credentials are resolved in the following order (first match wins):

        1. Explicit constructor arguments â€” ``api_key=``, ``auth_token=``,
           ``credentials=``, ``config=``, or ``profile=``. When any of these
           is passed, environment variables are not consulted for credentials.
        2. ``ANTHROPIC_API_KEY`` / ``ANTHROPIC_AUTH_TOKEN`` environment
           variables.
        3. ``ANTHROPIC_PROFILE`` environment variable â€” loads the named
           profile from ``<config_dir>/configs/<profile>.json``.
        4. Workload identity federation environment variables â€”
           ``ANTHROPIC_IDENTITY_TOKEN[_FILE]`` +
           ``ANTHROPIC_FEDERATION_RULE_ID`` + ``ANTHROPIC_ORGANIZATION_ID``.
        5. The active profile on disk â€” the profile named by
           ``<config_dir>/active_config``, or ``default``.

        ``credentials=``, ``config=``, and ``profile=`` are mutually exclusive.

        If a static credential is supplied alongside a credentials provider
        (``credentials=`` / ``config=`` / ``profile=``), or if
        ``ANTHROPIC_API_KEY`` / ``ANTHROPIC_AUTH_TOKEN`` is set alongside a
        profile or federation configuration, the static credential takes
        precedence and a one-shot warning is logged on the ``anthropic``
        logger.
        NrG   rH   rv   rw   rx   ry   rz   r{   r   r	   r|   r}   r~   rE   rL   r   )$rI   rJ   rK   rB   rD   r]   rƒ   r„   r…   r   r†   r$   r‡   rˆ   r‰   r&   r5   r(   r=   rŠ   r<   rA   r6   rF   rM   r‹   r   r_   r#   r%   ra   rŒ   r�   r   r   rŽ   r�   r›   r3   r4   r�   4  r�   zAsyncAnthropic.__init__rW   c                 C  rž   )Nr	   )rW   )rŸ   rW   )r�   rW   r3   r3   r4   rQ   È  r    zAsyncAnthropic.completionsrY   c                 C  rž   )Nr	   )rY   )r¡   rY   )r�   rY   r3   r3   r4   rP   Î  r    zAsyncAnthropic.messagesrS   c                 C  rž   )Nr	   )rS   )r¢   rS   )r�   rS   r3   r3   r4   rO   Ô  r    zAsyncAnthropic.modelsrU   c                 C  rž   )Nr	   )rU   )r£   rU   )r�   rU   r3   r3   r4   rN   Ú  r    zAsyncAnthropic.betaÚAsyncAnthropicWithRawResponsec                 C  r¥   r¦   )r#  r§   r3   r3   r4   r¨   à  r©   z AsyncAnthropic.with_raw_responseÚ"AsyncAnthropicWithStreamedResponsec                 C  r¥   r¦   )r$  r§   r3   r3   r4   r«   ä  r©   z&AsyncAnthropic.with_streaming_responser   c                 C  r¬   r­   r   r§   r3   r3   r4   r°   è  r±   zAsyncAnthropic.qsr²   c                 C  r³   r¦   r´   r§   r3   r3   r4   r·   í  r¸   zAsyncAnthropic.auth_headersc                 C  r¹   rº   r¼   r½   r3   r3   r4   rµ   ò  r¾   zAsyncAnthropic._api_key_authc                 C  r¿   rÀ   rÂ   rÃ   r3   r3   r4   r¶   ù  rÄ   zAsyncAnthropic._bearer_authrÅ   c                   s$   i t ƒ j¥dtƒ › �ddœ¥| j¥S )Nzasync:rÇ   rÈ   )rŒ   rg   r   rÉ   r§   r›   r3   r4   rg     s   ÿ
ýüzAsyncAnthropic.default_headersrÊ   r   r�   c                 C  rË   rÌ   rÍ   rÎ   r3   r3   r4   rÏ     s   ÿz AsyncAnthropic._validate_headersrÐ   c                 C  rÑ   r¦   rÒ   r§   r3   r3   r4   rÓ   %  rÔ   zAsyncAnthropic.custom_authrÕ   rÖ   c                   r×   rØ   rÛ   rà   r›   r3   r4   rß   *  rá   zAsyncAnthropic._should_retryc                 ƒ  s    �t ƒ  ¡ I d H  t| jƒ d S r¦   râ   r§   r›   r3   r4   r8   9  s   €zAsyncAnthropic.closerã   rç   rè   rä   rå   ré   ræ   rê   r   c                C  rë   rì   rí   rò   r3   r3   r4   rõ   B  rö   zAsyncAnthropic.copyr   c                 G  r÷   rø   rù   rú   r3   r3   r4   rû   ‘  rü   zAsyncAnthropic.with_middlewarerý   r=   rþ   r-   r   c                C  rÿ   r   r  r  r3   r3   r4   r  œ  r  z!AsyncAnthropic._make_status_error) rB   rC   rD   rC   r6   r;   rc   rl   rd   rC   r]   rC   r<   rm   re   rn   rf   ro   rg   rp   rh   rq   ri   r"  rj   rs   rk   r/   r_   rt   r.   r7   )r.   rW   )r.   rY   )r.   rS   )r.   rU   )r.   r#  )r.   r$  r  r  r  r  r  r  r  )"rB   rC   rD   rC   r6   rç   rc   rl   rd   rC   r]   rC   r<   rm   re   rn   ri   r"  rf   rè   rg   rp   rä   rp   rh   rq   rå   rq   rj   ré   ræ   rê   r.   r   r  r  r  r3   r3   r›   r4   r2   '  s¢   
 	ä îM
r2   c                   @  óX   e Zd ZU ded< ddd„Zedd	d
„ƒZeddd„ƒZeddd„ƒZeddd„ƒZ	dS )r¤   r1   rð   r,   r.   r7   c                 C  ó
   || _ d S r¦   ©rð   ©r�   r,   r3   r3   r4   r�   Ç  ó   
z!AnthropicWithRawResponse.__init__ú&completions.CompletionsWithRawResponsec                 C  ó   ddl m} || jjƒS )Nr	   )ÚCompletionsWithRawResponse)rŸ   r,  rð   rQ   )r�   r,  r3   r3   r4   rQ   Ê  ó   z$AnthropicWithRawResponse.completionsú messages.MessagesWithRawResponsec                 C  r+  )Nr	   )ÚMessagesWithRawResponse)r¡   r/  rð   rP   )r�   r/  r3   r3   r4   rP   Ð  r-  z!AnthropicWithRawResponse.messagesúmodels.ModelsWithRawResponsec                 C  r+  )Nr	   )ÚModelsWithRawResponse)r¢   r1  rð   rO   )r�   r1  r3   r3   r4   rO   Ö  r-  zAnthropicWithRawResponse.modelsúbeta.BetaWithRawResponsec                 C  r+  )Nr	   )ÚBetaWithRawResponse)r£   r3  rð   rN   )r�   r3  r3   r3   r4   rN   Ü  r-  zAnthropicWithRawResponse.betaN©r,   r1   r.   r7   )r.   r*  )r.   r.  )r.   r0  )r.   r2  ©
r  r  r  r  r�   r   rQ   rP   rO   rN   r3   r3   r3   r4   r¤   Ä  ó   
 
r¤   c                   @  r%  )r#  r2   rð   r,   r.   r7   c                 C  r&  r¦   r'  r(  r3   r3   r4   r�   æ  r)  z&AsyncAnthropicWithRawResponse.__init__ú+completions.AsyncCompletionsWithRawResponsec                 C  r+  )Nr	   )ÚAsyncCompletionsWithRawResponse)rŸ   r8  rð   rQ   )r�   r8  r3   r3   r4   rQ   é  r-  z)AsyncAnthropicWithRawResponse.completionsú%messages.AsyncMessagesWithRawResponsec                 C  r+  )Nr	   )ÚAsyncMessagesWithRawResponse)r¡   r:  rð   rP   )r�   r:  r3   r3   r4   rP   ï  r-  z&AsyncAnthropicWithRawResponse.messagesú!models.AsyncModelsWithRawResponsec                 C  r+  )Nr	   )ÚAsyncModelsWithRawResponse)r¢   r<  rð   rO   )r�   r<  r3   r3   r4   rO   õ  r-  z$AsyncAnthropicWithRawResponse.modelsúbeta.AsyncBetaWithRawResponsec                 C  r+  )Nr	   )ÚAsyncBetaWithRawResponse)r£   r>  rð   rN   )r�   r>  r3   r3   r4   rN   û  r-  z"AsyncAnthropicWithRawResponse.betaN©r,   r2   r.   r7   )r.   r7  )r.   r9  )r.   r;  )r.   r=  r5  r3   r3   r3   r4   r#  ã  r6  r#  c                   @  r%  )rª   r1   rð   r,   r.   r7   c                 C  r&  r¦   r'  r(  r3   r3   r4   r�     r)  z&AnthropicWithStreamedResponse.__init__ú,completions.CompletionsWithStreamingResponsec                 C  r+  )Nr	   )Ú CompletionsWithStreamingResponse)rŸ   rA  rð   rQ   )r�   rA  r3   r3   r4   rQ     r-  z)AnthropicWithStreamedResponse.completionsú&messages.MessagesWithStreamingResponsec                 C  r+  )Nr	   )ÚMessagesWithStreamingResponse)r¡   rC  rð   rP   )r�   rC  r3   r3   r4   rP     r-  z&AnthropicWithStreamedResponse.messagesú"models.ModelsWithStreamingResponsec                 C  r+  )Nr	   )ÚModelsWithStreamingResponse)r¢   rE  rð   rO   )r�   rE  r3   r3   r4   rO     r-  z$AnthropicWithStreamedResponse.modelsúbeta.BetaWithStreamingResponsec                 C  r+  )Nr	   )ÚBetaWithStreamingResponse)r£   rG  rð   rN   )r�   rG  r3   r3   r4   rN     r-  z"AnthropicWithStreamedResponse.betaNr4  )r.   r@  )r.   rB  )r.   rD  )r.   rF  r5  r3   r3   r3   r4   rª     r6  rª   c                   @  r%  )r$  r2   rð   r,   r.   r7   c                 C  r&  r¦   r'  r(  r3   r3   r4   r�   $  r)  z+AsyncAnthropicWithStreamedResponse.__init__ú1completions.AsyncCompletionsWithStreamingResponsec                 C  r+  )Nr	   )Ú%AsyncCompletionsWithStreamingResponse)rŸ   rI  rð   rQ   )r�   rI  r3   r3   r4   rQ   '  r-  z.AsyncAnthropicWithStreamedResponse.completionsú+messages.AsyncMessagesWithStreamingResponsec                 C  r+  )Nr	   )Ú"AsyncMessagesWithStreamingResponse)r¡   rK  rð   rP   )r�   rK  r3   r3   r4   rP   -  r-  z+AsyncAnthropicWithStreamedResponse.messagesú'models.AsyncModelsWithStreamingResponsec                 C  r+  )Nr	   )Ú AsyncModelsWithStreamingResponse)r¢   rM  rð   rO   )r�   rM  r3   r3   r4   rO   3  r-  z)AsyncAnthropicWithStreamedResponse.modelsú#beta.AsyncBetaWithStreamingResponsec                 C  r+  )Nr	   )ÚAsyncBetaWithStreamingResponse)r£   rO  rð   rN   )r�   rO  r3   r3   r4   rN   9  r-  z'AsyncAnthropicWithStreamedResponse.betaNr?  )r.   rH  )r.   rJ  )r.   rL  )r.   rN  r5  r3   r3   r3   r4   r$  !  r6  r$  )r,   r-   r.   r/   )r6   r-   r.   r7   )r6   r;   r<   r=   r.   r7   )rB   rC   rD   rC   r6   r-   r.   r7   )rB   rC   rD   rC   r.   r7   )XÚ
__future__r   rI   Útypingr   r   r   r   Útyping_extensionsr   r   ÚhttpxÚ r
   r   Ú_qsr   Ú_typesr   r   r   r   r   r   r   r   Ú_utilsr   r   r   Ú_compatr   Ú_versionr   Ú
_streamingr   r   r   rñ   r   Ú_base_clientr   r    r!   r"   Úlib.credentialsr#   r$   r%   r&   r'   r(   Úlib.credentials._authr)   r*   Úlib.credentials._constantsr+   r5   r:   rA   rF   rM   Ú	resourcesrN   rO   rP   rQ   r¢   rR   rS   Úresources.beta.betarT   rU   rŸ   rV   rW   Úresources.messages.messagesrX   rY   Ú__all__r1   r2   r¤   r#  rª   r$  rZ   r[   r3   r3   r3   r4   Ú<module>   sX   (
 





   $    