
    _j!                    l   S SK Jr  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"J#r#  SSK$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      r0g)    )annotations)List)chainN   )_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)SyncPageCursorAsyncPageCursor)AsyncPaginatormake_request_options)version_list_params)AnthropicBetaParam)BetaManagedAgentsAgentVersionsAsyncVersionsc                  |    \ 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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
)VersionsWithRawResponseselfs    ]/home/rurouni/.local/lib/python3.13/site-packages/anthropic/resources/beta/agents/versions.pywith_raw_responseVersions.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
)VersionsWithStreamingResponser&   s    r(   with_streaming_response Versions.with_streaming_response$   s     -T22r+   Nlimitpage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       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 EnU R                  [        SUS9[        [           [        UUUU[        UUS.[        R                  5      S	9[        S
9$ )  List Agent Versions

Args:
  limit: Maximum results per page.

Default 20, maximum 100.

  page: Opaque pagination cursor.

  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 `agent_id` but received anthropic-beta,c              3  8   #    U  H  n[        U5      v   M     g 7fNstr.0es     r(   	<genexpr> Versions.list.<locals>.<genexpr>S        5Lec!ffe   managed-agents-2026-04-01(/v1/agents/{agent_id}/versions?beta=trueagent_idr2   r3   r5   r6   r7   r8   queryr3   optionsmodel)
ValueErrorr   r   joinr   r   _get_api_listr   r   r   r   r   r   VersionListParams	r'   rL   r2   r3   r4   r5   r6   r7   r8   s	            r(   listVersions.list-   s    B VW_Vbcdd	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`!!DxX 67(+'%%!& $ (99 )! " 
 	
r+    )returnr%   )r[   r.   )rL   rA   r2   
int | Omitr3   
str | Omitr4   List[AnthropicBetaParam] | Omitr5   Headers | Noner6   Query | Noner7   Body | Noner8   'float | httpx.Timeout | None | NotGivenr[   z&SyncPageCursor[BetaManagedAgentsAgent]__name__
__module____qualname____firstlineno__r   r)   r/   r   r   rX   __static_attributes__rZ   r+   r(   r   r      s    - - 3 3 !15 )-$("&;D?
?
 	?

 ?
 /?
 &?
 "?
  ?
 9?
 
0?
 ?
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r
g)r    o   c                    [        U 5      $ r$   )AsyncVersionsWithRawResponser&   s    r(   r)   AsyncVersions.with_raw_responsep   s     ,D11r+   c                    [        U 5      $ r-   )"AsyncVersionsWithStreamingResponser&   s    r(   r/   %AsyncVersions.with_streaming_responsez   s     2$77r+   Nr1   c                  U(       d  [        SU< 35      e0 [        S[        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        05      EU=(       d    0 EnSS0U=(       d    0 EnU R                  [        SUS9[        [           [        UUUU[        UUS.[        R                  5      S	9[        S
9$ )r:   r;   r<   r=   c              3  8   #    U  H  n[        U5      v   M     g 7fr?   r@   rB   s     r(   rE   %AsyncVersions.list.<locals>.<genexpr>   rG   rH   rI   rJ   rK   rM   rN   rP   )rS   r   r   rT   r   r   rU   r   r   r   r   r   r   rV   rW   s	            r(   rX   AsyncVersions.list   s    B VW_Vbcdd	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`!!DxX !78(+'%%!& $ (99 )! " 
 	
r+   rZ   )r[   rl   )r[   ro   )rL   rA   r2   r\   r3   r]   r4   r^   r5   r_   r6   r`   r7   ra   r8   rb   r[   zOAsyncPaginator[BetaManagedAgentsAgent, AsyncPageCursor[BetaManagedAgentsAgent]]rc   rZ   r+   r(   r    r    o   s    2 2 8 8 !15 )-$("&;D?
?
 	?

 ?
 /?
 &?
 "?
  ?
 9?
 
Y?
 ?
r+   c                      \ rS rSrSS jrSrg)r%      c                Z    Xl         [        R                  " UR                  5      U l        g r?   )	_versionsr   to_raw_response_wrapperrX   r'   versionss     r(   __init__ VersionsWithRawResponse.__init__   s     !$<<MM
	r+   rx   rX   Nr{   r   r[   Nonerd   re   rf   rg   r|   rh   rZ   r+   r(   r%   r%          
r+   r%   c                      \ rS rSrSS jrSrg)rl      c                Z    Xl         [        R                  " UR                  5      U l        g r?   )rx   r   async_to_raw_response_wrapperrX   rz   s     r(   r|   %AsyncVersionsWithRawResponse.__init__   s     !$BBMM
	r+   r~   Nr{   r    r[   r   r   rZ   r+   r(   rl   rl      r   r+   rl   c                      \ rS rSrSS jrSrg)r.      c                D    Xl         [        UR                  5      U l        g r?   )rx   r   rX   rz   s     r(   r|   &VersionsWithStreamingResponse.__init__   s    !0MM
	r+   r~   Nr   r   rZ   r+   r(   r.   r.      r   r+   r.   c                      \ rS rSrSS jrSrg)ro      c                D    Xl         [        UR                  5      U l        g r?   )rx   r   rX   rz   s     r(   r|   +AsyncVersionsWithStreamingResponse.__init__   s    !6MM
	r+   r~   Nr   r   rZ   r+   r(   ro   ro      r   r+   ro   )1
__future__r   typingr   	itertoolsr   httpx r   _typesr   r	   r
   r   r   r   r   _utilsr   r   r   r   _compatr   	_resourcer   r   	_responser   r   
paginationr   r   _base_clientr   r   types.beta.agentsr   types.anthropic_beta_paramr   $types.beta.beta_managed_agents_agentr   __all__r   r    r%   rl   r.   ro   rZ   r+   r(   <module>r      s    #    ! L L L P P ' ; Z : A 5 = K
'S
 S
lS
$ S
l
 

 

 

 
r+   