ó
    ±"³j]ü  ã                  óê  • S SK Jr  S SKrS SKJrJrJrJrJrJ	r	  S SK
Jr  S SKJr  S SKr\(       a  S SKJr  SSKJr  SS	KJr  SS
KJr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#  SSK$J%r%  SSK&J'r'J(r(  SSK)J*r*J+r+J,r,J-r-  SSK.J/r/J0r0  SSK1J2r2J3r3  SSK4J5r5J6r6  SSK7J8r8  SSK9J:r:  SSK;J<r<  SSK=J>r>  SS/r? " S S\'5      r@ " S S\(5      rA " S S5      rB " S S5      rC " S S 5      rD " S! S"5      rEg)#é    )ÚannotationsN)ÚTYPE_CHECKINGÚDictÚListÚOptionalÚcastÚoverload)Úchain)Ú
deprecated)ÚAsyncIteratoré   )ÚAsyncAnthropic)ÚMemoryDeleteMode)ÚEnvironmentWorkerÚEnvironmentWorkerTools)ÚBodyÚOmitÚQueryÚHeadersÚNotGivenÚomitÚ	not_given)Úis_givenÚpath_templateÚstrip_not_given)Úcached_property)ÚSyncAPIResourceÚAsyncAPIResource)Úto_raw_response_wrapperÚto_streamed_response_wrapperÚasync_to_raw_response_wrapperÚ"async_to_streamed_response_wrapper)ÚSyncPageCursorÚAsyncPageCursor)ÚAsyncPaginatorÚmake_request_options)ÚUNRESTRICTED_PATHS_DEPRECATIONÚreject_unrestricted_paths)ÚAnthropicBetaParam)ÚBetaSelfHostedWork)ÚBetaSelfHostedWorkQueueStats)Ú#BetaSelfHostedWorkHeartbeatResponseÚWorkÚ	AsyncWorkc            	      ó<  • \ 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SS\S.                 SS	 jjr\SSS\S
.               SS jjr\\\SSS\S.                   SS jjr\\\\SSS\S.                   SS jj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
)ÚWorkWithRawResponse©Úselfs    Úg/home/mande/repo/quber/.venv/lib/python3.13/site-packages/anthropic/resources/beta/environments/work.pyÚwith_raw_responseÚWork.with_raw_response'   s   € ô # 4Ó(Ð(ó    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
)ÚWorkWithStreamingResponser4   s    r6   Úwith_streaming_responseÚWork.with_streaming_response1   s   € ô )¨Ó.Ð.r9   N©ÚbetasÚworkspace_idÚextra_headersÚextra_queryÚ
extra_bodyÚtimeoutc          
     óh  • U(       d  [        SU< 35      eU(       d  [        SU< 35      e0 [        [        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        US.5      EU=(       d    0 EnSS0U=(       d    0 EnU R                  [        SUUS	9[        XVXxS
9[        S9$ )áà  
Note: these endpoints are called automatically by the pre-built environment
worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted
sandbox environments. They are included here as a reference; you do not need to
invoke them directly.

Retrieve detailed information about a specific work item.

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

  workspace_id: Optional header to select the Workspace for this request. The value is a
      Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).

      Only needed for credentials that can act on more than one Workspace. A
      credential that belongs to a specific Workspace may omit it; if sent, it must
      match that Workspace.

  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
ú=Expected a non-empty value for `environment_id` but received ú6Expected a non-empty value for `work_id` but received Ú,c              3  ó8   #   • U  H  n[        U5      v •  M     g 7f©N©Ústr©Ú.0Úes     r6   Ú	<genexpr>Ú Work.retrieve.<locals>.<genexpr>i   ó   é € Ð5LÂeÀ´c¸!·f°fÂeùó   ‚úmanaged-agents-2026-04-01©úanthropic-betazanthropic-workspace-idrX   ú:/v1/environments/{environment_id}/work/{work_id}?beta=true©Úenvironment_idÚwork_id©rB   rC   rD   rE   ©ÚoptionsÚcast_to©
Ú
ValueErrorr   r   Újoinr
   r   Ú_getr   r&   r*   ©	r5   r\   r[   r@   rA   rB   rC   rD   rE   s	            r6   ÚretrieveÚWork.retrieve:   sá   € öP ÜÐ\Ð]kÑ\nÐoÓpÐpÞÜÐUÐV]ÑU`ÐaÓbÐbð

Üô   —‘ð '*§h¡h¬uÑ5LÁeÓ5LÐOjÐNkÓ/lÔ&mä"Ø.:ñ	óð

ð ×" ð

ˆð *Ð+FÐ`È=×K^Ð\^Ð`ˆØ�y‰yÜØLØ-Øñô
 )Ø+ÐQ[ñô 'ð ð 

ð 
	
r9   c               ón  • U(       d  [        SU< 35      eU(       d  [        SU< 35      e0 [        [        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        US.5      EU=(       d    0 EnSS0U=(       d    0 EnU R                  [        SUUS	9S
U0[        XgX‰S9[        S9$ )ád  
Note: these endpoints are called automatically by the pre-built environment
worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted
sandbox environments. They are included here as a reference; you do not need to
invoke them directly.

Update work item metadata with merge semantics.

Args:
  metadata: Metadata patch. Set a key to a string to upsert it, or to null to delete it.
      Omit the field to preserve existing metadata.

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

  workspace_id: Optional header to select the Workspace for this request. The value is a
      Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).

      Only needed for credentials that can act on more than one Workspace. A
      credential that belongs to a specific Workspace may omit it; if sent, it must
      match that Workspace.

  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
rH   rI   rJ   c              3  ó8   #   • U  H  n[        U5      v •  M     g 7frL   rM   rO   s     r6   rR   ÚWork.update.<locals>.<genexpr>±   rT   rU   rV   rW   rX   rY   rZ   Úmetadatar]   ©Úbodyr_   r`   ©
rb   r   r   rc   r
   r   Ú_postr   r&   r*   ©
r5   r\   r[   rl   r@   rA   rB   rC   rD   rE   s
             r6   ÚupdateÚWork.update~   sé   € öX ÜÐ\Ð]kÑ\nÐoÓpÐpÞÜÐUÐV]ÑU`ÐaÓbÐbð

Üô   —‘ð '*§h¡h¬uÑ5LÁeÓ5LÐOjÐNkÓ/lÔ&mä"Ø.:ñ	óð

ð ×" ð

ˆð *Ð+FÐ`È=×K^Ð\^Ð`ˆØ�z‰zÜØLØ-Øñð
 ˜hÐ'Ü(Ø+ÐQ[ñô 'ð ð 
ð 	
r9   ©ÚlimitÚpager@   rB   rC   rD   rE   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.S	9[        S
9$ )áÚ  
Note: these endpoints are called automatically by the pre-built environment
worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted
sandbox environments. They are included here as a reference; you do not need to
invoke them directly.

List work items in an environment.

Args:
  limit: Maximum number of work items to return

  page: Opaque cursor from previous response for pagination

  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
rH   rX   rJ   c              3  ó8   #   • U  H  n[        U5      v •  M     g 7frL   rM   rO   s     r6   rR   ÚWork.list.<locals>.<genexpr>ñ   rT   rU   rV   ú0/v1/environments/{environment_id}/work?beta=true©r[   ©ru   rv   ©rB   rC   rD   rE   Úquery©rv   r_   Úmodel)rb   r   r   rc   r
   r   Ú_get_api_listr   r#   r*   r&   ©	r5   r[   ru   rv   r@   rB   rC   rD   rE   s	            r6   ÚlistÚ	Work.listÇ   sÜ   € öJ ÜÐ\Ð]kÑ\nÐoÓpÐpð	
Üà$Ü —‘ð '*§h¡h¬uÑ5LÁeÓ5LÐOjÐNkÓ/lÔ&mä"ðóð	
ð ×" ð	
ˆð *Ð+FÐ`È=×K^Ð\^Ð`ˆØ×!Ñ!ÜÐLÐ]kÑlÜÔ 2Ñ3Ü(Ø+Ø'Ø%Øà"Ø ññ	ô %ð "ð 
ð 	
r9   ©r@   rB   rC   rD   rE   c          
     óf  • U(       d  [        SU< 35      e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US9[        XEXgS	9[        S
9$ )áº  
Note: these endpoints are called automatically by the pre-built environment
worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted
sandbox environments. They are included here as a reference; you do not need to
invoke them directly.

Acknowledge receipt of a work item, transitioning it from 'queued' to 'starting'
and removing it from the queue.

Args:
  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
rH   rI   rX   rJ   c              3  ó8   #   • U  H  n[        U5      v •  M     g 7frL   rM   rO   s     r6   rR   ÚWork.ack.<locals>.<genexpr>1  rT   rU   rV   ú>/v1/environments/{environment_id}/work/{work_id}/ack?beta=truerZ   r]   r^   ro   ©r5   r\   r[   r@   rB   rC   rD   rE   s           r6   ÚackÚWork.ack	  sß   € öB ÜÐ\Ð]kÑ\nÐoÓpÐpÞÜÐUÐV]ÑU`ÐaÓbÐbð	
Üà$Ü —‘ð '*§h¡h¬uÑ5LÁeÓ5LÐOjÐNkÓ/lÔ&mä"ðóð	
ð ×" ð	
ˆð *Ð+FÐ`È=×K^Ð\^Ð`ˆØ�z‰zÜØPØ-Øñô
 )Ø+ÐQ[ñô 'ð ð 

ð 
	
r9   ©Údesired_ttl_secondsÚexpected_last_heartbeatr@   rB   rC   rD   rE   c               ór  • U(       d  [        SU< 35      e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US9[        UUUU	UUS	.S
9[        S9$ )á
  
Note: these endpoints are called automatically by the pre-built environment
worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted
sandbox environments. They are included here as a reference; you do not need to
invoke them directly.

Record a heartbeat for a work item to maintain the lease.

Args:
  desired_ttl_seconds: Desired TTL in seconds

  expected_last_heartbeat: Expected last_heartbeat for conditional update (optimistic concurrency). Use
      literal 'NO_HEARTBEAT' to claim an unclaimed lease (first heartbeat). For
      subsequent heartbeats, echo the server's previous last_heartbeat value exactly.
      Returns 412 Precondition Failed if the actual value doesn't match.

  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
rH   rI   rX   rJ   c              3  ó8   #   • U  H  n[        U5      v •  M     g 7frL   rM   rO   s     r6   rR   Ú!Work.heartbeat.<locals>.<genexpr>u  rT   rU   rV   úD/v1/environments/{environment_id}/work/{work_id}/heartbeat?beta=truerZ   ©r�   r‘   r~   r^   ©
rb   r   r   rc   r
   r   rp   r   r&   r,   ©
r5   r\   r[   r�   r‘   r@   rB   rC   rD   rE   s
             r6   Ú	heartbeatÚWork.heartbeatE  sð   € öR ÜÐ\Ð]kÑ\nÐoÓpÐpÞÜÐUÐV]ÑU`ÐaÓbÐbð	
Üà$Ü —‘ð '*§h¡h¬uÑ5LÁeÓ5LÐOjÐNkÓ/lÔ&mä"ðóð	
ð ×" ð	
ˆð *Ð+FÐ`È=×K^Ð\^Ð`ˆØ�z‰zÜØVØ-Øñô
 )Ø+Ø'Ø%Øà+>Ø/Fññ	ô 8ð! ð 
ð 	
r9   ©Úblock_msÚreclaim_older_than_msr@   Úanthropic_worker_idrB   rC   rD   rE   c               óF  • U(       d  [        SU< 35      e0 [        [        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        US.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	.S
9[        S9$ )áF  
Note: these endpoints are called automatically by the pre-built environment
worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted
sandbox environments. They are included here as a reference; you do not need to
invoke them directly.

Long poll for work items in the queue.

Args:
  block_ms: How long to wait for work to arrive before returning. Must be 1-999 in
      milliseconds. Defaults to non-blocking (returns immediately if no work is
      available).

  reclaim_older_than_ms: Reclaim unacknowledged work items older than this many milliseconds. If omitted,
      uses the default (5000ms).

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

  anthropic_worker_id: Unique identifier for the specific worker polling, used to track aggregated
      environment-level work metrics in Console

  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
rH   rJ   c              3  ó8   #   • U  H  n[        U5      v •  M     g 7frL   rM   rO   s     r6   rR   ÚWork.poll.<locals>.<genexpr>Á  rT   rU   rV   ©rX   zAnthropic-Worker-IDrX   ú5/v1/environments/{environment_id}/work/poll?beta=truer|   ©r�   rž   r~   r^   ra   ©
r5   r[   r�   rž   r@   rŸ   rB   rC   rD   rE   s
             r6   ÚpollÚ	Work.poll�  sÓ   € öX ÜÐ\Ð]kÑ\nÐoÓpÐpð

Üô   —‘ð '*§h¡h¬uÑ5LÁeÓ5LÐOjÐNkÓ/lÔ&mä"Ø+>ñ	óð

ð ×" ð

ˆð *Ð+FÐ`È=×K^Ð\^Ð`ˆØ�y‰yÜÐQÐbpÑqÜ(Ø+Ø'Ø%Øà (Ø-Bññ	ô 'ð ð 
ð 	
r9   c          
     ó:  • U(       d  [        SU< 35      e0 [        [        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        US.5      EU=(       d    0 EnSS0U=(       d    0 EnU R                  [        SUS9[        XEXgS	9[        S
9$ )áÚ  
Get statistics about the work queue for an environment.

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

  workspace_id: Optional header to select the Workspace for this request. The value is a
      Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).

      Only needed for credentials that can act on more than one Workspace. A
      credential that belongs to a specific Workspace may omit it; if sent, it must
      match that Workspace.

  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
rH   rJ   c              3  ó8   #   • U  H  n[        U5      v •  M     g 7frL   rM   rO   s     r6   rR   ÚWork.stats.<locals>.<genexpr>   rT   rU   rV   rW   rX   ú6/v1/environments/{environment_id}/work/stats?beta=truer|   r]   r^   ©
rb   r   r   rc   r
   r   rd   r   r&   r+   ©r5   r[   r@   rA   rB   rC   rD   rE   s           r6   ÚstatsÚ
Work.statsÙ  sÂ   € öD ÜÐ\Ð]kÑ\nÐoÓpÐpð

Üô   —‘ð '*§h¡h¬uÑ5LÁeÓ5LÐOjÐNkÓ/lÔ&mä"Ø.:ñ	óð

ð ×" ð

ˆð *Ð+FÐ`È=×K^Ð\^Ð`ˆØ�y‰yÜÐRÐcqÑrÜ(Ø+ÐQ[ñô 1ð ð 
ð 	
r9   ©Úforcer@   rA   rB   rC   rD   rE   c               ón  • U(       d  [        SU< 35      eU(       d  [        SU< 35      e0 [        [        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        US.5      EU=(       d    0 EnSS0U=(       d    0 EnU R                  [        SUUS	9S
U0[        XgX‰S9[        S9$ )á#  
Note: these endpoints are called automatically by the pre-built environment
worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted
sandbox environments. They are included here as a reference; you do not need to
invoke them directly.

Stop a work item, initiating graceful or forced shutdown.

Args:
  force: If true, immediately stop work without graceful shutdown

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

  workspace_id: Optional header to select the Workspace for this request. The value is a
      Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).

      Only needed for credentials that can act on more than one Workspace. A
      credential that belongs to a specific Workspace may omit it; if sent, it must
      match that Workspace.

  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
rH   rI   rJ   c              3  ó8   #   • U  H  n[        U5      v •  M     g 7frL   rM   rO   s     r6   rR   ÚWork.stop.<locals>.<genexpr>C  rT   rU   rV   rW   rX   ú?/v1/environments/{environment_id}/work/{work_id}/stop?beta=truerZ   r´   r]   rm   ro   ©
r5   r\   r[   r´   r@   rA   rB   rC   rD   rE   s
             r6   ÚstopÚ	Work.stop  sé   € öV ÜÐ\Ð]kÑ\nÐoÓpÐpÞÜÐUÐV]ÑU`ÐaÓbÐbð

Üô   —‘ð '*§h¡h¬uÑ5LÁeÓ5LÐOjÐNkÓ/lÔ&mä"Ø.:ñ	óð

ð ×" ð

ˆð *Ð+FÐ`È=×K^Ð\^Ð`ˆØ�z‰zÜØQØ-Øñð
 ˜5Ð!Ü(Ø+ÐQ[ñô 'ð ð 
ð 	
r9   © )Úreturnr3   )r¾   r<   ©r\   rN   r[   rN   r@   úList[AnthropicBetaParam] | OmitrA   ú
str | OmitrB   úHeaders | NonerC   úQuery | NonerD   úBody | NonerE   ú(float | httpx2.Timeout | None | NotGivenr¾   r*   ©r\   rN   r[   rN   rl   zDict[str, Optional[str]]r@   rÀ   rA   rÁ   rB   rÂ   rC   rÃ   rD   rÄ   rE   rÅ   r¾   r*   )r[   rN   ru   ú
int | Omitrv   úOptional[str] | Omitr@   rÀ   rB   rÂ   rC   rÃ   rD   rÄ   rE   rÅ   r¾   z"SyncPageCursor[BetaSelfHostedWork]©r\   rN   r[   rN   r@   rÀ   rB   rÂ   rC   rÃ   rD   rÄ   rE   rÅ   r¾   r*   ©r\   rN   r[   rN   r�   úOptional[int] | Omitr‘   rÈ   r@   rÀ   rB   rÂ   rC   rÃ   rD   rÄ   rE   rÅ   r¾   r,   ©r[   rN   r�   rË   rž   rË   r@   rÀ   rŸ   rÁ   rB   rÂ   rC   rÃ   rD   rÄ   rE   rÅ   r¾   zOptional[BetaSelfHostedWork]©r[   rN   r@   rÀ   rA   rÁ   rB   rÂ   rC   rÃ   rD   rÄ   rE   rÅ   r¾   r+   ©r\   rN   r[   rN   r´   zbool | Omitr@   rÀ   rA   rÁ   rB   rÂ   rC   rÃ   rD   rÄ   rE   rÅ   r¾   r*   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   r7   r=   r   r   rf   rr   r„   r�   rš   r¨   r±   r»   Ú__static_attributes__r½   r9   r6   r-   r-   &   s-  † Øó)ó ð)ð ó/ó ð/ð 26Ø#'ð )-Ø$(Ø"&Ø<EñB
àðB
ð ð	B
ð
 /ðB
ð !ðB
ð &ðB
ð "ðB
ð  ðB
ð :ðB
ð 
õB
ðT 26Ø#'ð )-Ø$(Ø"&Ø<EñG
àðG
ð ð	G
ð
 +ðG
ð /ðG
ð !ðG
ð &ðG
ð "ðG
ð  ðG
ð :ðG
ð 
õG
ðZ !Ø%)Ø15ð )-Ø$(Ø"&Ø<Eñ@
àð@
ð ð	@
ð
 #ð@
ð /ð@
ð &ð@
ð "ð@
ð  ð@
ð :ð@
ð 
,õ@
ðN 26ð )-Ø$(Ø"&Ø<Eñ:
àð:
ð ð	:
ð
 /ð:
ð &ð:
ð "ð:
ð  ð:
ð :ð:
ð 
õ:
ðB 59Ø8<Ø15ð )-Ø$(Ø"&Ø<EñI
àðI
ð ð	I
ð
 2ðI
ð "6ðI
ð /ðI
ð &ðI
ð "ðI
ð  ðI
ð :ðI
ð 
-õI
ð^ *.Ø6:Ø15Ø*.ð )-Ø$(Ø"&Ø<EñG
àðG
ð 'ð	G
ð
  4ðG
ð /ðG
ð (ðG
ð &ðG
ð "ðG
ð  ðG
ð :ðG
ð 
&õG
ðZ 26Ø#'ð )-Ø$(Ø"&Ø<Eñ6
àð6
ð /ð	6
ð
 !ð6
ð &ð6
ð "ð6
ð  ð6
ð :ð6
ð 
&õ6
ðz "Ø15Ø#'ð )-Ø$(Ø"&Ø<EñF
àðF
ð ð	F
ð
 ðF
ð /ðF
ð !ðF
ð &ðF
ð "ðF
ð  ðF
ð :ðF
ð 
÷F
ð F
r9   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SS\S.                 S"S	 jjr\SSS\S
.               S#S jjr\\\SSS\S.                   S$S jjr\\\\SSS\S.                   S%S jjr\\SSS\S.               S&S jjr\\\SSS\S.                   S'S jjrS\SSSSS.                 S(S jjr\SSSS\\\SSSS.
                     S)S jj5       r\\" \5      SSSS\\\SSSS.
                       S*S jj5       5       rSSSS\\\\SSSS.                       S+S jjrSrg),r.   iZ  c                ó   • [        U 5      $ r2   )ÚAsyncWorkWithRawResponser4   s    r6   r7   ÚAsyncWork.with_raw_response[  s   € ô (¨Ó-Ð-r9   c                ó   • [        U 5      $ r;   )ÚAsyncWorkWithStreamingResponser4   s    r6   r=   Ú!AsyncWork.with_streaming_responsee  s   € ô .¨dÓ3Ð3r9   Nr?   c          
   ƒ  ó„  #   • U(       d  [        SU< 35      eU(       d  [        SU< 35      e0 [        [        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        US.5      EU=(       d    0 EnSS0U=(       d    0 EnU R                  [        SUUS	9[        XVXxS
9[        S9I Sh  v•N $  N7f)rG   rH   rI   rJ   c              3  ó8   #   • U  H  n[        U5      v •  M     g 7frL   rM   rO   s     r6   rR   Ú%AsyncWork.retrieve.<locals>.<genexpr>�  rT   rU   rV   rW   rX   rY   rZ   r]   r^   Nra   re   s	            r6   rf   ÚAsyncWork.retrieven  sî   é € öP ÜÐ\Ð]kÑ\nÐoÓpÐpÞÜÐUÐV]ÑU`ÐaÓbÐbð

Üô   —‘ð '*§h¡h¬uÑ5LÁeÓ5LÐOjÐNkÓ/lÔ&mä"Ø.:ñ	óð

ð ×" ð

ˆð *Ð+FÐ`È=×K^Ð\^Ð`ˆØ—Y‘YÜØLØ-Øñô
 )Ø+ÐQ[ñô 'ð ð 

÷ 

ð 
	
ñ 

ùs   ‚B7C Â9B>Â:C c             ƒ  óŠ  #   • U(       d  [        SU< 35      eU(       d  [        SU< 35      e0 [        [        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        US.5      EU=(       d    0 EnSS0U=(       d    0 EnU R                  [        SUUS	9S
U0[        XgX‰S9[        S9I Sh  v•N $  N7f)ri   rH   rI   rJ   c              3  ó8   #   • U  H  n[        U5      v •  M     g 7frL   rM   rO   s     r6   rR   Ú#AsyncWork.update.<locals>.<genexpr>å  rT   rU   rV   rW   rX   rY   rZ   rl   r]   rm   Nro   rq   s
             r6   rr   ÚAsyncWork.update²  sö   é € öX ÜÐ\Ð]kÑ\nÐoÓpÐpÞÜÐUÐV]ÑU`ÐaÓbÐbð

Üô   —‘ð '*§h¡h¬uÑ5LÁeÓ5LÐOjÐNkÓ/lÔ&mä"Ø.:ñ	óð

ð ×" ð

ˆð *Ð+FÐ`È=×K^Ð\^Ð`ˆØ—Z‘ZÜØLØ-Øñð
 ˜hÐ'Ü(Ø+ÐQ[ñô 'ð  ð 
÷ 
ð 	
ñ 
ùó   ‚B:CÂ<CÂ=Crt   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.S	9[        S
9$ )rx   rH   rX   rJ   c              3  ó8   #   • U  H  n[        U5      v •  M     g 7frL   rM   rO   s     r6   rR   Ú!AsyncWork.list.<locals>.<genexpr>%  rT   rU   rV   r{   r|   r}   r~   r€   )rb   r   r   rc   r
   r   r‚   r   r$   r*   r&   rƒ   s	            r6   r„   ÚAsyncWork.listû  sÜ   € öJ ÜÐ\Ð]kÑ\nÐoÓpÐpð	
Üà$Ü —‘ð '*§h¡h¬uÑ5LÁeÓ5LÐOjÐNkÓ/lÔ&mä"ðóð	
ð ×" ð	
ˆð *Ð+FÐ`È=×K^Ð\^Ð`ˆØ×!Ñ!ÜÐLÐ]kÑlÜ Ô!3Ñ4Ü(Ø+Ø'Ø%Øà"Ø ññ	ô %ð "ð 
ð 	
r9   r†   c          
   ƒ  ó‚  #   • U(       d  [        SU< 35      e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US9[        XEXgS	9[        S
9I Sh  v•N $  N7f)rˆ   rH   rI   rX   rJ   c              3  ó8   #   • U  H  n[        U5      v •  M     g 7frL   rM   rO   s     r6   rR   Ú AsyncWork.ack.<locals>.<genexpr>e  rT   rU   rV   r‹   rZ   r]   r^   Nro   rŒ   s           r6   r�   ÚAsyncWork.ack=  sì   é € öB ÜÐ\Ð]kÑ\nÐoÓpÐpÞÜÐUÐV]ÑU`ÐaÓbÐbð	
Üà$Ü —‘ð '*§h¡h¬uÑ5LÁeÓ5LÐOjÐNkÓ/lÔ&mä"ðóð	
ð ×" ð	
ˆð *Ð+FÐ`È=×K^Ð\^Ð`ˆØ—Z‘ZÜØPØ-Øñô
 )Ø+ÐQ[ñô 'ð  ð 

÷ 

ð 
	
ñ 

ùs   ‚B6B?Â8B=Â9B?r�   c             ƒ  óŽ  #   • U(       d  [        SU< 35      e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US9[        UUUU	UUS	.S
9[        S9I Sh  v•N $  N7f)r“   rH   rI   rX   rJ   c              3  ó8   #   • U  H  n[        U5      v •  M     g 7frL   rM   rO   s     r6   rR   Ú&AsyncWork.heartbeat.<locals>.<genexpr>©  rT   rU   rV   r–   rZ   r—   r~   r^   Nr˜   r™   s
             r6   rš   ÚAsyncWork.heartbeaty  sý   é € öR ÜÐ\Ð]kÑ\nÐoÓpÐpÞÜÐUÐV]ÑU`ÐaÓbÐbð	
Üà$Ü —‘ð '*§h¡h¬uÑ5LÁeÓ5LÐOjÐNkÓ/lÔ&mä"ðóð	
ð ×" ð	
ˆð *Ð+FÐ`È=×K^Ð\^Ð`ˆØ—Z‘ZÜØVØ-Øñô
 )Ø+Ø'Ø%Øà+>Ø/Fññ	ô 8ð!  ð 
÷ 
ð 	
ñ 
ùs   ‚B<CÂ>CÂ?Crœ   c             ƒ  ób  #   • U(       d  [        SU< 35      e0 [        [        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        US.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	.S
9[        S9I Sh  v•N $  N7f)r¡   rH   rJ   c              3  ó8   #   • U  H  n[        U5      v •  M     g 7frL   rM   rO   s     r6   rR   Ú!AsyncWork.poll.<locals>.<genexpr>õ  rT   rU   rV   r¤   rX   r¥   r|   r¦   r~   r^   Nra   r§   s
             r6   r¨   ÚAsyncWork.pollÄ  sà   é € öX ÜÐ\Ð]kÑ\nÐoÓpÐpð

Üô   —‘ð '*§h¡h¬uÑ5LÁeÓ5LÐOjÐNkÓ/lÔ&mä"Ø+>ñ	óð

ð ×" ð

ˆð *Ð+FÐ`È=×K^Ð\^Ð`ˆØ—Y‘YÜÐQÐbpÑqÜ(Ø+Ø'Ø%Øà (Ø-Bññ	ô 'ð ð 
÷ 
ð 	
ñ 
ùs   ‚B&B/Â(B-Â)B/c          
   ƒ  óV  #   • U(       d  [        SU< 35      e0 [        [        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        US.5      EU=(       d    0 EnSS0U=(       d    0 EnU R                  [        SUS9[        XEXgS	9[        S
9I Sh  v•N $  N7f)r«   rH   rJ   c              3  ó8   #   • U  H  n[        U5      v •  M     g 7frL   rM   rO   s     r6   rR   Ú"AsyncWork.stats.<locals>.<genexpr>4  rT   rU   rV   rW   rX   r®   r|   r]   r^   Nr¯   r°   s           r6   r±   ÚAsyncWork.stats  sÏ   é € öD ÜÐ\Ð]kÑ\nÐoÓpÐpð

Üô   —‘ð '*§h¡h¬uÑ5LÁeÓ5LÐOjÐNkÓ/lÔ&mä"Ø.:ñ	óð

ð ×" ð

ˆð *Ð+FÐ`È=×K^Ð\^Ð`ˆØ—Y‘YÜÐRÐcqÑrÜ(Ø+ÐQ[ñô 1ð ð 
÷ 
ð 	
ñ 
ùs   ‚B B)Â"B'Â#B)r³   c             ƒ  óŠ  #   • U(       d  [        SU< 35      eU(       d  [        SU< 35      e0 [        [        U5      (       a#  SR                  [	        S U 5       S/5      5      O[
        US.5      EU=(       d    0 EnSS0U=(       d    0 EnU R                  [        SUUS	9S
U0[        XgX‰S9[        S9I Sh  v•N $  N7f)r¶   rH   rI   rJ   c              3  ó8   #   • U  H  n[        U5      v •  M     g 7frL   rM   rO   s     r6   rR   Ú!AsyncWork.stop.<locals>.<genexpr>w  rT   rU   rV   rW   rX   r¹   rZ   r´   r]   rm   Nro   rº   s
             r6   r»   ÚAsyncWork.stopE  sö   é € öV ÜÐ\Ð]kÑ\nÐoÓpÐpÞÜÐUÐV]ÑU`ÐaÓbÐbð

Üô   —‘ð '*§h¡h¬uÑ5LÁeÓ5LÐOjÐNkÓ/lÔ&mä"Ø.:ñ	óð

ð ×" ð

ˆð *Ð+FÐ`È=×K^Ð\^Ð`ˆØ—Z‘ZÜØQØ-Øñð
 ˜5Ð!Ü(Ø+ÐQ[ñô 'ð  ð 
÷ 
ð 	
ñ 
ùrã   FT)Ú	worker_idr�   rž   ÚdrainÚ	auto_stoprB   c               óÐ   • SSK Jn	  SSKJn
Jn  [        U5      (       d  U
nU	" [        SU R                  5      USS9nU" UR                  R                  R                  UUUUUUUS9$ )us  Async-iterate work items claimed from a self-hosted environment.

Each yielded item has been ack'd. The environment key authenticates the
poll, ack, and stop calls via a scoped sub-client (built once per
call). Async only â€” available on `anthropic.AsyncAnthropic`
(the sync client does not expose `poller`).

With the defaults this loops forever and calls `stop` after the
consuming `async for` body returns or raises (long-running runner
shape). Pass `drain=True, auto_stop=False` to drain whatever is queued
and return without owning the stop call (webhook-dispatch shape â€” each
item is handed off to another process that calls `stop` when done).

Args:
  environment_id: The self-hosted environment to claim work from.
  environment_key: The environment key â€” used as the Bearer credential
    on the scoped sub-client that issues poll / ack / stop requests.
  worker_id: Optional identifier sent on each poll. Defaults to a
    unique, hostname-prefixed id.
  block_ms: How long the server should hold an empty poll open before
    returning (long-poll). Server caps this at 999. Defaults to
    `POLL_BLOCK_MS` (999) when not given. Pass `None` to omit for a
    non-blocking poll â€” the server rejects `0`.
  reclaim_older_than_ms: Reclaim un-ack'd work older than this many ms.
    Forwarded to the underlying poll request.
  drain: When True, return after the first empty poll instead of
    sleeping and re-polling.
  auto_stop: When True (default), call `stop` after the consumer's
    loop body completes. Set False when handing items off to another
    process that owns the stop call.
  extra_headers: Optional headers passed through per request on the
    poll / ack / stop calls. They are threaded into each call's
    `extra_headers=` and never assigned onto the client, so client
    state is not mutated. Auth and `x-stainless-helper` are supplied
    by the scoped sub-client built here (and the parent client's
    `default_headers` propagate via its `client.copy()`); a header
    given here overrides the scoped client's same-named default for
    that request, so use it for caller passthrough (e.g. trace ids),
    not to set auth.
r   )Ú_copy_client_with_bearer_auth)ÚPOLL_BLOCK_MSÚ
aiter_workr   zenvironments-work-poller)Ú
auth_tokenÚhelper)r[   rü   r�   rž   rý   rþ   rB   )Úlib._scoped_clientr   Úlib.environments._pollerr  r  r   r   Ú_clientÚbetaÚenvironmentsÚwork)r5   r[   Úenvironment_keyrü   r�   rž   rý   rþ   rB   r   r  r  Úscopeds                r6   ÚpollerÚAsyncWork.poller�  sr   € õr 	IßJä˜×!Ñ!Ø$ˆHá.ÜÐ! 4§<¡<Ó0Ø&Ø-ñ
ˆñ
 Ø�K‰K×$Ñ$×)Ñ)Ø)ØØØ"7ØØØ'ñ	
ð 		
r9   Úenabled©
r[   r  ÚtoolsÚworkdirÚmax_file_bytesÚmax_idleÚmemory_sync_intervalÚmemory_sync_deletionsrü   rB   c       
        ó   • g rL   r½   )r5   r[   r  r  r  r  r  r  r  rü   rB   s              r6   ÚworkerÚAsyncWork.workerÜ  s   € ð  r9   c               ó   • g rL   r½   )r5   r[   r  r  r  Úunrestricted_pathsr  r  r  r  rü   rB   s               r6   r  r  ì  s   € ð   r9   )r[   r  r  r  r  r  r  r  r  rü   rB   c               óÄ   • SSK JnJn  SSKJn  [        U5        [        U5      (       d  Un[        U5      (       d  UnU" [        SU R                  5      UUUUUUUU	U
US9$ )u[  Build an `anthropic.lib.environments.EnvironmentWorker` bound to this async client.

The full worker: it polls the environment for work, and for each claimed
session sets up the workdir + downloads the session agent's skills, runs
the given `tools` against the session's tool-call events while
heartbeating the work-item lease, force-stops the work on exit, and
loops. Composed from this resource's `poller` and the per-session
session tool runner.

`EnvironmentWorker` is async only â€” its `run` / `handle_item`
coroutines need an event loop. With this `anthropic.AsyncAnthropic`
client the returned worker is ready to `await worker.run()` (long-running
poll loop) or `await worker.handle_item()` (single already-claimed work
item). It can also be constructed directly:
`EnvironmentWorker(client, ...)`.

Args:
  environment_id: The self-hosted environment to poll for work. Required
    by `EnvironmentWorker.run`; not used by
    `EnvironmentWorker.handle_item`.
  environment_key: The environment key â€” the worker's single credential,
    used as Bearer auth on the control-plane and session-level calls.
  tools: Tools to expose to each claimed session. Either a fixed list or
    a factory invoked once per session with that session's
    `AgentToolContext`. Defaults to `beta_agent_toolset_20260401(env)`.
    Async tools share the event loop with the lease heartbeat, so keep
    them non-blocking.
  workdir: Base directory for the per-session `AgentToolContext`.
    Defaults to `os.getcwd()` captured when the worker is constructed
    (TS parity: `process.cwd()` at construction).
  unrestricted_paths: Deprecated and no longer accepted; passing either
    value raises `TypeError` (see `AgentToolContext`).
  max_file_bytes: Forwarded to the per-session `AgentToolContext` â€” the
    size cap (bytes) for the `read`/`edit` tools. `not_given`
    (default) uses the built-in 256 KiB cap; a positive int sets a custom
    cap; `None` disables the cap.
  max_idle: Seconds to keep running after the session goes idle with
    `stop_reason` `end_turn`. Defaults to `DEFAULT_MAX_IDLE` (60s)
    when not given. `None` disables it.
  memory_sync_interval: How often (seconds) to sync the session's
    attached memory stores; `None` disables memory. Defaults to
    `DEFAULT_MEMORY_SYNC_INTERVAL` (15s) when not given.
  memory_sync_deletions: `"enabled"` (default), `"log_only"`, or
    `"disabled"`.
  worker_id: Optional identifier sent on each poll. Defaults to a unique,
    hostname-prefixed id.
  extra_headers: Optional headers passed through per request on every
    call the worker makes (poll / ack / stop / heartbeat and the
    session tool runner's event stream / list / send). They are
    threaded into each call's `extra_headers=` and never assigned
    onto the client, so client state is not mutated. Auth and
    `x-stainless-helper` are supplied by the worker's scoped
    sub-clients (and the parent client's `default_headers` propagate
    via their `client.copy()`); a header given here overrides a
    scoped client's same-named default for that request, so use it for
    caller passthrough (e.g. trace ids), not to set auth.
r   )ÚDEFAULT_MEMORY_SYNC_INTERVALr   )ÚDEFAULT_MAX_IDLEr   r  )	Úlib.environments._workerr  r   Úlib.tools._beta_session_runnerr  r(   r   r   r  )r5   r[   r  r  r  r  r  r  r  r  rü   rB   r  r   r  s                  r6   r  r  þ  sq   € ÷V 	aÝGä!Ð"4Ô5Ü˜×!Ñ!Ø'ˆHÜÐ,×-Ñ-Ø#?Ð á ÜÐ! 4§<¡<Ó0Ø)Ø+ØØØ)ØØ!5Ø"7ØØ'ñ
ð 	
r9   r½   )r¾   rÖ   )r¾   rÙ   r¿   rÆ   )r[   rN   ru   rÇ   rv   rÈ   r@   rÀ   rB   rÂ   rC   rÃ   rD   rÄ   rE   rÅ   r¾   zGAsyncPaginator[BetaSelfHostedWork, AsyncPageCursor[BetaSelfHostedWork]]rÉ   rÊ   rÌ   rÍ   rÎ   )r[   rN   r  rN   rü   ú
str | Noner�   úint | None | NotGivenrž   z
int | Nonerý   Úboolrþ   r#  rB   rÂ   r¾   z!AsyncIterator[BetaSelfHostedWork])r[   r!  r  r!  r  úEnvironmentWorkerTools | Noner  ústr | os.PathLike[str] | Noner  r"  r  úfloat | None | NotGivenr  r&  r  r   rü   r!  rB   rÂ   r¾   r   )r[   r!  r  r!  r  r$  r  r%  r  r#  r  r"  r  r&  r  r&  r  r   rü   r!  rB   rÂ   r¾   r   )r[   r!  r  r!  r  r$  r  r%  r  zbool | NotGivenr  r"  r  r&  r  r&  r  r   rü   r!  rB   rÂ   r¾   r   )rÏ   rÐ   rÑ   rÒ   r   r7   r=   r   r   rf   rr   r„   r�   rš   r¨   r±   r»   r  r	   r  r   r'   rÓ   r½   r9   r6   r.   r.   Z  s¶  † Øó.ó ð.ð ó4ó ð4ð 26Ø#'ð )-Ø$(Ø"&Ø<EñB
àðB
ð ð	B
ð
 /ðB
ð !ðB
ð &ðB
ð "ðB
ð  ðB
ð :ðB
ð 
õB
ðT 26Ø#'ð )-Ø$(Ø"&Ø<EñG
àðG
ð ð	G
ð
 +ðG
ð /ðG
ð !ðG
ð &ðG
ð "ðG
ð  ðG
ð :ðG
ð 
õG
ðZ !Ø%)Ø15ð )-Ø$(Ø"&Ø<Eñ@
àð@
ð ð	@
ð
 #ð@
ð /ð@
ð &ð@
ð "ð@
ð  ð@
ð :ð@
ð 
Qõ@
ðN 26ð )-Ø$(Ø"&Ø<Eñ:
àð:
ð ð	:
ð
 /ð:
ð &ð:
ð "ð:
ð  ð:
ð :ð:
ð 
õ:
ðB 59Ø8<Ø15ð )-Ø$(Ø"&Ø<EñI
àðI
ð ð	I
ð
 2ðI
ð "6ðI
ð /ðI
ð &ðI
ð "ðI
ð  ðI
ð :ðI
ð 
-õI
ð^ *.Ø6:Ø15Ø*.ð )-Ø$(Ø"&Ø<EñG
àðG
ð 'ð	G
ð
  4ðG
ð /ðG
ð (ðG
ð &ðG
ð "ðG
ð  ðG
ð :ðG
ð 
&õG
ðZ 26Ø#'ð )-Ø$(Ø"&Ø<Eñ6
àð6
ð /ð	6
ð
 !ð6
ð &ð6
ð "ð6
ð  ð6
ð :ð6
ð 
&õ6
ðz "Ø15Ø#'ð )-Ø$(Ø"&Ø<EñF
àðF
ð ð	F
ð
 ðF
ð /ðF
ð !ðF
ð &ðF
ð "ðF
ð  ðF
ð :ðF
ð 
õF
ðZ !%Ø*3Ø,0ØØØ(,ñM
ð ðM
ð ð	M
ð
 ðM
ð (ðM
ð  *ðM
ð ðM
ð ðM
ð &ðM
ð 
+õM
ð^ ð &*Ø&*Ø/3Ø15Ø09Ø,5Ø8AØ2;Ø $Ø(,ñ ð #ð ð $ð	 ð
 -ð ð /ð ð .ð ð *ð ð 6ð ð  0ð ð ð ð &ð ð 
ô ó ð ð ÙÐ.Ó/ð &*Ø&*Ø/3Ø15à09Ø,5Ø8AØ2;Ø $Ø(,ñ ð #ð ð $ð	 ð
 -ð ð /ð ð !ð ð .ð ð *ð ð 6ð ð  0ð ð ð ð &ð ð 
ô ó 0ó ð ð& &*Ø&*Ø/3Ø15Ø.7Ø09Ø,5Ø8AØ2;Ø $Ø(,ñ`
ð #ð`
ð $ð	`
ð
 -ð`
ð /ð`
ð ,ð`
ð .ð`
ð *ð`
ð 6ð`
ð  0ð`
ð ð`
ð &ð`
ð 
÷`
ð `
r9   c                  ó   • \ rS rSrSS jrSrg)r3   ia  c                ó°  • Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR
                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l	        g rL   )
Ú_workr   rf   rr   r„   r�   rš   r¨   r±   r»   ©r5   r
  s     r6   Ú__init__ÚWorkWithRawResponse.__init__b  s­   € ØŒ
ä/Ø�M‰Mó
ˆŒô .Ø�K‰Kó
ˆŒô ,Ø�I‰Ió
ˆŒ	ô +Ø�H‰Hó
ˆŒô 1Ø�N‰Nó
ˆŒô ,Ø�I‰Ió
ˆŒ	ô -Ø�J‰Jó
ˆŒ
ô ,Ø�I‰Ió
ˆ�	r9   ©	r)  r�   rš   r„   r¨   rf   r±   r»   rr   N©r
  r-   r¾   ÚNone©rÏ   rÐ   rÑ   rÒ   r+  rÓ   r½   r9   r6   r3   r3   a  ó   † ÷
r9   r3   c                  ó   • \ rS rSrSS jrSrg)rÖ   i  c                ó°  • Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR
                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l	        g rL   )
r)  r!   rf   rr   r„   r�   rš   r¨   r±   r»   r*  s     r6   r+  Ú!AsyncWorkWithRawResponse.__init__€  s­   € ØŒ
ä5Ø�M‰Mó
ˆŒô 4Ø�K‰Kó
ˆŒô 2Ø�I‰Ió
ˆŒ	ô 1Ø�H‰Hó
ˆŒô 7Ø�N‰Nó
ˆŒô 2Ø�I‰Ió
ˆŒ	ô 3Ø�J‰Jó
ˆŒ
ô 2Ø�I‰Ió
ˆ�	r9   r-  N©r
  r.   r¾   r/  r0  r½   r9   r6   rÖ   rÖ     r1  r9   rÖ   c                  ó   • \ rS rSrSS jrSrg)r<   i�  c                ó°  • Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR
                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l	        g rL   )
r)  r    rf   rr   r„   r�   rš   r¨   r±   r»   r*  s     r6   r+  Ú"WorkWithStreamingResponse.__init__ž  s­   € ØŒ
ä4Ø�M‰Mó
ˆŒô 3Ø�K‰Kó
ˆŒô 1Ø�I‰Ió
ˆŒ	ô 0Ø�H‰Hó
ˆŒô 6Ø�N‰Nó
ˆŒô 1Ø�I‰Ió
ˆŒ	ô 2Ø�J‰Jó
ˆŒ
ô 1Ø�I‰Ió
ˆ�	r9   r-  Nr.  r0  r½   r9   r6   r<   r<   �  r1  r9   r<   c                  ó   • \ rS rSrSS jrSrg)rÙ   i»  c                ó°  • Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR
                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l	        g rL   )
r)  r"   rf   rr   r„   r�   rš   r¨   r±   r»   r*  s     r6   r+  Ú'AsyncWorkWithStreamingResponse.__init__¼  s­   € ØŒ
ä:Ø�M‰Mó
ˆŒô 9Ø�K‰Kó
ˆŒô 7Ø�I‰Ió
ˆŒ	ô 6Ø�H‰Hó
ˆŒô <Ø�N‰Nó
ˆŒô 7Ø�I‰Ió
ˆŒ	ô 8Ø�J‰Jó
ˆŒ
ô 7Ø�I‰Ió
ˆ�	r9   r-  Nr5  r0  r½   r9   r6   rÙ   rÙ   »  r1  r9   rÙ   )FÚ
__future__r   ÚosÚtypingr   r   r   r   r   r	   Ú	itertoolsr
   Útyping_extensionsr   Úhttpx2Úcollections.abcr   r  r   Úlib.tools._memoriesr   r  r   r   Ú_typesr   r   r   r   r   r   r   Ú_utilsr   r   r   Ú_compatr   Ú	_resourcer   r   Ú	_responser   r    r!   r"   Ú
paginationr#   r$   Ú_base_clientr%   r&   Úlib.tools._deprecationsr'   r(   Útypes.anthropic_beta_paramr)   Ú-types.beta.environments.beta_self_hosted_workr*   Ú9types.beta.environments.beta_self_hosted_work_queue_statsr+   Ú@types.beta.environments.beta_self_hosted_work_heartbeat_responser,   Ú__all__r-   r.   r3   rÖ   r<   rÙ   r½   r9   r6   Ú<module>rQ     s°   ðÝ "ã 	ß F× FÝ Ý (ã æÝ-å*Ý8ßVç L× LÑ Lß ?Ñ ?Ý 'ß ;÷ó ÷ ;ß Aß aÝ =Ý PÝ fÝ tà�;Ð
€ôq
ˆ?ô q
ôhD
Ð ô D
÷N
ñ 
÷<
ñ 
÷<
ñ 
÷<
ò 
r9   