
    _j51                    `   S SK Jr  S SKJr  S SKrSSKJr  SSKJrJ	r	J
r
JrJrJrJr  SSKJrJrJrJr  SSKJr  SS	KJrJr  SS
KJrJr  SSKJrJr  SSKJ r   SSK!J"r"J#r#  SSK$J%r%  SSK&J'r'  SS/r( " S S\5      r) " S S\5      r* " S S5      r+ " S S5      r, " S S5      r- " S S5      r.g)    )annotations)ListN   )_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)SyncPage	AsyncPage)model_list_params)AsyncPaginatormake_request_options)AnthropicBetaParam)BetaModelInfoModelsAsyncModelsc            	          \ rS rSr\S
S j5       r\SS j5       r\SSS\S.             SS jjr	\\\\SSS\S.                 SS jjr
S	rg)r      c                    [        U 5      $ z
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/anthropics/anthropic-sdk-python#accessing-raw-response-data-eg-headers
)ModelsWithRawResponseselfs    T/home/rurouni/.local/lib/python3.13/site-packages/anthropic/resources/beta/models.pywith_raw_responseModels.with_raw_response   s     %T**    c                    [        U 5      $ z
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/anthropics/anthropic-sdk-python#with_streaming_response
)ModelsWithStreamingResponser%   s    r'   with_streaming_responseModels.with_streaming_response#   s     +400r*   Nbetasextra_headersextra_query
extra_bodytimeoutc          
        U(       d  [        SU< 35      e0 [        S[        U5      (       a  SR                  S U 5       5      O[        05      EU=(       d    0 EnU R                  [        SUS9[        X4XVS9[        S9$ )	   
Get a specific model.

The Models API response can be used to determine information about a specific
model or resolve a model alias to a model ID.

Args:
  model_id: Model identifier or alias.

  betas: Optional header to specify the beta version(s) you want to use.

  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
7Expected a non-empty value for `model_id` but received anthropic-beta,c              3  8   #    U  H  n[        U5      v   M     g 7fNstr.0es     r'   	<genexpr>"Models.retrieve.<locals>.<genexpr>N        9P%Q#a&&%   /v1/models/{model_id}?beta=truemodel_idr2   r3   r4   r5   optionscast_to	
ValueErrorr   r   joinr   _getr   r   r   r&   rH   r1   r2   r3   r4   r5   s          r'   retrieveModels.retrieve,   s    > VW_Vbcdd
/T\]bTcTc9P%9P1Pirst
"
 yy;hO(+Q[ "  
 	
r*   after_id	before_idlimitr1   r2   r3   r4   r5   c                  0 [        S[        U5      (       a  SR                  S U 5       5      O[        05      EU=(       d    0 EnU R	                  S[
        [           [        UUUU[        UUUS.[        R                  5      S9[        S9$ )s  
List available models.

The Models API response can be used to determine which models are available for
use in the API. More recently released models are listed first.

Args:
  after_id: ID of the object to use as a cursor for pagination. When provided, returns the
      page of results immediately after this object.

  before_id: ID of the object to use as a cursor for pagination. When provided, returns the
      page of results immediately before this object.

  limit: Number of items to return per page.

      Defaults to `20`. Ranges from `1` to `1000`.

  betas: Optional header to specify the beta version(s) you want to use.

  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
r9   r:   c              3  8   #    U  H  n[        U5      v   M     g 7fr<   r=   r?   s     r'   rB   Models.list.<locals>.<genexpr>   rD   rE   /v1/models?beta=truerU   rV   rW   r2   r3   r4   r5   querypagerK   model)r   r   rO   r   _get_api_listr   r   r   r   r   ModelListParams	r&   rU   rV   rW   r1   r2   r3   r4   r5   s	            r'   listModels.listY   s    R
/T\]bTcTc9P%9P1Pirst
"
 !!"-((+'%%$,%.!&
 &55  # " 
 	
r*    )returnr$   )ri   r-   rH   r>   r1   List[AnthropicBetaParam] | Omitr2   Headers | Noner3   Query | Noner4   Body | Noner5   'float | httpx.Timeout | None | NotGivenri   r   )rU   
str | OmitrV   rp   rW   
int | Omitr1   rk   r2   rl   r3   rm   r4   rn   r5   ro   ri   zSyncPage[BetaModelInfo]__name__
__module____qualname____firstlineno__r   r(   r.   r   r   rR   rf   __static_attributes__rh   r*   r'   r   r      s   + + 1 1 26 )-$("&;D+
+
 /	+
 &+
 "+
  +
 9+
 
+
`  $ $ 15 )-$("&;D?
 ?
 	?

 ?
 /?
 &?
 "?
  ?
 9?
 
!?
 ?
r*   c            	          \ rS rSr\S
S j5       r\SS j5       r\SSS\S.             SS jjr	\\\\SSS\S.                 SS jjr
S	rg)r      c                    [        U 5      $ r#   )AsyncModelsWithRawResponser%   s    r'   r(   AsyncModels.with_raw_response   s     *$//r*   c                    [        U 5      $ r,   ) AsyncModelsWithStreamingResponser%   s    r'   r.   #AsyncModels.with_streaming_response   s     055r*   Nr0   c          
        #    U(       d  [        SU< 35      e0 [        S[        U5      (       a  SR                  S U 5       5      O[        05      EU=(       d    0 EnU R                  [        SUS9[        X4XVS9[        S9I S	h  vN $  N7f)
r7   r8   r9   r:   c              3  8   #    U  H  n[        U5      v   M     g 7fr<   r=   r?   s     r'   rB   'AsyncModels.retrieve.<locals>.<genexpr>   rD   rE   rF   rG   rI   rJ   NrM   rQ   s          r'   rR   AsyncModels.retrieve   s     > VW_Vbcdd
/T\]bTcTc9P%9P1Pirst
"
 YY;hO(+Q[ "  
 
 	
 
s   BBBBrT   c                  0 [        S[        U5      (       a  SR                  S U 5       5      O[        05      EU=(       d    0 EnU R	                  S[
        [           [        UUUU[        UUUS.[        R                  5      S9[        S9$ )rY   r9   r:   c              3  8   #    U  H  n[        U5      v   M     g 7fr<   r=   r?   s     r'   rB   #AsyncModels.list.<locals>.<genexpr>  rD   rE   r\   r]   r^   r`   )r   r   rO   r   rc   r   r   r   r   r   rd   re   s	            r'   rf   AsyncModels.list   s    R
/T\]bTcTc9P%9P1Pirst
"
 !!"=)(+'%%$,%.!&
 &55  # " 
 	
r*   rh   )ri   r{   )ri   r~   rj   )rU   rp   rV   rp   rW   rq   r1   rk   r2   rl   r3   rm   r4   rn   r5   ro   ri   z7AsyncPaginator[BetaModelInfo, AsyncPage[BetaModelInfo]]rr   rh   r*   r'   r   r      s   0 0 6 6 26 )-$("&;D+
+
 /	+
 &+
 "+
  +
 9+
 
+
`  $ $ 15 )-$("&;D?
 ?
 	?

 ?
 /?
 &?
 "?
  ?
 9?
 
A?
 ?
r*   c                      \ rS rSrSS jrSrg)r$   i  c                    Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        g r<   )_modelsr   to_raw_response_wrapperrR   rf   r&   modelss     r'   __init__ModelsWithRawResponse.__init__  s;    (@@OO
 %<<KK
	r*   r   rf   rR   Nr   r   ri   Noners   rt   ru   rv   r   rw   rh   r*   r'   r$   r$         
r*   r$   c                      \ rS rSrSS jrSrg)r{   i*  c                    Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        g r<   )r   r   async_to_raw_response_wrapperrR   rf   r   s     r'   r   #AsyncModelsWithRawResponse.__init__+  s;    (FFOO
 %BBKK
	r*   r   Nr   r   ri   r   r   rh   r*   r'   r{   r{   *  r   r*   r{   c                      \ rS rSrSS jrSrg)r-   i6  c                x    Xl         [        UR                  5      U l        [        UR                  5      U l        g r<   )r   r   rR   rf   r   s     r'   r   $ModelsWithStreamingResponse.__init__7  s/    4OO
 1KK
	r*   r   Nr   r   rh   r*   r'   r-   r-   6  r   r*   r-   c                      \ rS rSrSS jrSrg)r~   iB  c                x    Xl         [        UR                  5      U l        [        UR                  5      U l        g r<   )r   r   rR   rf   r   s     r'   r   )AsyncModelsWithStreamingResponse.__init__C  s/    :OO
 7KK
	r*   r   Nr   r   rh   r*   r'   r~   r~   B  r   r*   r~   )/
__future__r   typingr   httpx r   _typesr   r   r	   r
   r   r   r   _utilsr   r   r   r   _compatr   	_resourcer   r   	_responser   r   
paginationr   r   
types.betar   _base_clientr   r   types.anthropic_beta_paramr   types.beta.beta_model_infor   __all__r   r   r$   r{   r-   r~   rh   r*   r'   <module>r      s    #     K K K O O & : Y - + @ < 7]
#@
_ @
F@
" @
F	
 	
	
 	
	
 	
	
 	
r*   