o
    î6Wj!  ã                   @  sH  d dl mZ d dl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ƒZ.G dd„ dƒZ/G dd„ dƒZ0dS )é    )Ú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                   @  óD   e Zd Zeddd„ƒZeddd„ƒZeeeddded	œddd„ZdS ) r   ÚreturnÚVersionsWithRawResponsec                 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/anthropics/anthropic-sdk-python#accessing-raw-response-data-eg-headers
        )r"   ©Úself© r'   úw/home/esfera/Documents/content_generation/venv/lib/python3.10/site-packages/anthropic/resources/beta/agents/versions.pyÚwith_raw_response   ó   zVersions.with_raw_responseÚVersionsWithStreamingResponsec                 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/anthropics/anthropic-sdk-python#with_streaming_response
        )r+   r%   r'   r'   r(   Úwith_streaming_response$   ó   z Versions.with_streaming_responseN©ÚlimitÚpageÚbetasÚextra_headersÚextra_queryÚ
extra_bodyÚtimeoutÚagent_idÚstrr0   ú
int | Omitr1   ú
str | Omitr2   úList[AnthropicBetaParam] | Omitr3   úHeaders | Noner4   úQuery | Noner5   úBody | Noner6   ú'float | httpx.Timeout | None | NotGivenú&SyncPageCursor[BetaManagedAgentsAgent]c          	      C  ó˜   |s	t d|›�ƒ‚i tdt|ƒrd tdd„ |D ƒdgƒ¡ntiƒ¥|p%i ¥}ddi|p-i ¥}| jtd|d�tt	 t
||||t||d	œtjƒd
�t	d�S )á	  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                 s  ó   � | ]}t |ƒV  qd S ©N©r8   ©Ú.0Úer'   r'   r(   Ú	<genexpr>S   ó   € z Versions.list.<locals>.<genexpr>úmanaged-agents-2026-04-01ú(/v1/agents/{agent_id}/versions?beta=true©r7   ©r0   r1   ©r3   r4   r5   r6   Úquery©r1   ÚoptionsÚmodel)Ú
ValueErrorr   r   Újoinr   r   Ú_get_api_listr   r   r   r   r   r   ÚVersionListParams©	r&   r7   r0   r1   r2   r3   r4   r5   r6   r'   r'   r(   Úlist-   ó>   !ÿýÿÿø

þûûðzVersions.list)r!   r"   )r!   r+   )r7   r8   r0   r9   r1   r:   r2   r;   r3   r<   r4   r=   r5   r>   r6   r?   r!   r@   ©	Ú__name__Ú
__module__Ú__qualname__r   r)   r-   r   r   r\   r'   r'   r'   r(   r      ó    	ôc                   @  r    ) r   r!   ÚAsyncVersionsWithRawResponsec                 C  r#   r$   )rc   r%   r'   r'   r(   r)   p   r*   zAsyncVersions.with_raw_responseÚ"AsyncVersionsWithStreamingResponsec                 C  r#   r,   )rd   r%   r'   r'   r(   r-   z   r.   z%AsyncVersions.with_streaming_responseNr/   r7   r8   r0   r9   r1   r:   r2   r;   r3   r<   r4   r=   r5   r>   r6   r?   úOAsyncPaginator[BetaManagedAgentsAgent, AsyncPageCursor[BetaManagedAgentsAgent]]c          	      C  rA   )rB   rC   rD   rE   c                 s  rF   rG   rH   rI   r'   r'   r(   rL   ©   rM   z%AsyncVersions.list.<locals>.<genexpr>rN   rO   rP   rQ   rR   rT   )rW   r   r   rX   r   r   rY   r   r   r   r   r   r   rZ   r[   r'   r'   r(   r\   ƒ   r]   zAsyncVersions.list)r!   rc   )r!   rd   )r7   r8   r0   r9   r1   r:   r2   r;   r3   r<   r4   r=   r5   r>   r6   r?   r!   re   r^   r'   r'   r'   r(   r   o   rb   c                   @  ó   e Zd Zddd„ZdS )	r"   Úversionsr   r!   ÚNonec                 C  ó   || _ t |j¡| _d S rG   )Ú	_versionsr   Úto_raw_response_wrapperr\   ©r&   rg   r'   r'   r(   Ú__init__Æ   ó   
ÿz VersionsWithRawResponse.__init__N©rg   r   r!   rh   ©r_   r`   ra   rm   r'   r'   r'   r(   r"   Å   ó    r"   c                   @  rf   )	rc   rg   r   r!   rh   c                 C  ri   rG   )rj   r   Úasync_to_raw_response_wrapperr\   rl   r'   r'   r(   rm   Ï   rn   z%AsyncVersionsWithRawResponse.__init__N©rg   r   r!   rh   rp   r'   r'   r'   r(   rc   Î   rq   rc   c                   @  rf   )	r+   rg   r   r!   rh   c                 C  ó   || _ t|jƒ| _d S rG   )rj   r   r\   rl   r'   r'   r(   rm   Ø   ó   
ÿz&VersionsWithStreamingResponse.__init__Nro   rp   r'   r'   r'   r(   r+   ×   rq   r+   c                   @  rf   )	rd   rg   r   r!   rh   c                 C  rt   rG   )rj   r   r\   rl   r'   r'   r(   rm   á   ru   z+AsyncVersionsWithStreamingResponse.__init__Nrs   rp   r'   r'   r'   r(   rd   à   rq   rd   )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"   rc   r+   rd   r'   r'   r'   r(   Ú<module>   s,   $VV			