
    b\j                       S SK Jr  S SKJrJrJrJrJr  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  SSKJr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$J%r%  S	SK&J'r'J(r(J)r)J*r*J+r+J,r,  SSK-J.r.  SSK/J0r0J1r1  SSK2J3r3J4r4  SSK5J6r6J7r7  SSK8J9r9J:r:J;r;  SSK<J=r=J>r>  S	SK?J@r@JArAJBrBJCrCJDrDJErE  SSKFJGrG  SSKHJIrI  SSKJJKrK  SSKLJMrM  SS/rN " S S\05      rO " S S\15      rP " S S5      rQ " S S 5      rR " S! S"5      rS " S# S$5      rTg)%    )annotations)DictListUnionIterableOptional)datetime)chain)LiteralN   )_legacy_response   )EventsAsyncEventsEventsWithRawResponseAsyncEventsWithRawResponseEventsWithStreamingResponse AsyncEventsWithStreamingResponse)BodyOmitQueryHeadersNotGivenSequenceNotStromit	not_given)is_givenpath_templatemaybe_transformstrip_not_givenasync_maybe_transform)	ResourcesAsyncResourcesResourcesWithRawResponseAsyncResourcesWithRawResponseResourcesWithStreamingResponse#AsyncResourcesWithStreamingResponse)cached_property)SyncAPIResourceAsyncAPIResource)to_streamed_response_wrapper"async_to_streamed_response_wrapper)SyncBidirectionalPageCursorAsyncBidirectionalPageCursor)session_list_paramssession_create_paramssession_update_params)AsyncPaginatormake_request_options)ThreadsAsyncThreadsThreadsWithRawResponseAsyncThreadsWithRawResponseThreadsWithStreamingResponse!AsyncThreadsWithStreamingResponse)AnthropicBetaParam)BetaManagedAgentsSession)BetaManagedAgentsDeletedSession)(BetaManagedAgentsSessionAgentUpdateParamSessionsAsyncSessionsc                  .   \ rS rSr\SS j5       r\SS j5       r\SS j5       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rg)r>   9   c                ,    [        U R                  5      $ N)r   _clientselfs    `/var/www/website/venv/lib/python3.13/site-packages/anthropic/resources/beta/sessions/sessions.pyeventsSessions.events:   s    dll##    c                ,    [        U R                  5      $ rC   )r"   rD   rE   s    rG   	resourcesSessions.resources>   s    &&rJ   c                ,    [        U R                  5      $ rC   )r4   rD   rE   s    rG   threadsSessions.threadsB   s    t||$$rJ   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
)SessionsWithRawResponserE   s    rG   with_raw_responseSessions.with_raw_responseF   s     't,,rJ   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
)SessionsWithStreamingResponserE   s    rG   with_streaming_response Sessions.with_streaming_responseP   s     -T22rJ   N	metadatarL   title	vault_idsbetasextra_headersextra_query
extra_bodytimeoutc               <   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UUUUS.[        R                  5      [        XXS9[        S9$ )	  Create Session

Args:
  agent: Agent identifier.

Accepts the `agent` ID string, which pins the latest version
      for the session, or an `agent` object with both id and version specified.

  environment_id: ID of the `environment` defining the container configuration for this session.

  metadata: Arbitrary key-value metadata attached to the session. Maximum 16 pairs, keys up
      to 64 chars, values up to 512 chars.

  resources: Resources (e.g. repositories, files) to mount into the session's container.

  title: Human-readable session title.

  vault_ids: Vault IDs for stored credentials the agent can use during the session.

  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
anthropic-beta,c              3  8   #    U  H  n[        U5      v   M     g 7frC   str.0es     rG   	<genexpr>"Sessions.create.<locals>.<genexpr>        5Lec!ffe   managed-agents-2026-04-01/v1/sessions?beta=trueagentenvironment_idr\   rL   r]   r^   r`   ra   rb   rc   bodyoptionscast_to)r    r   joinr
   r   _postr   r0   SessionCreateParamsr3   r;   rF   ru   rv   r\   rL   r]   r^   r_   r`   ra   rb   rc   s               rG   createSessions.createY   s    \	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`zz$ "&4 (!*"!* &99
 )+Q[ -!  
 	
rJ   r_   r`   ra   rb   rc   c          
     8   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[        X4XVS9[        S	9$ )
Q  
Get Session

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
9Expected a non-empty value for `session_id` but received rf   rg   c              3  8   #    U  H  n[        U5      v   M     g 7frC   ri   rk   s     rG   rn   $Sessions.retrieve.<locals>.<genexpr>   rp   rq   rr   #/v1/sessions/{session_id}?beta=true
session_idrw   rz   r{   

ValueErrorr    r   r|   r
   r   _getr   r3   r;   rF   r   r_   r`   ra   rb   rc   s          rG   retrieveSessions.retrieve   s    4 XYcXfghh	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`yy?JW(+Q[ -  
 	
rJ   	ru   r\   r]   r^   r_   r`   ra   rb   rc   c       	        t   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S.[        R                  5      [        XxXS	9[        S
9$ )  Update Session

Args:
  agent: Mid-session agent configuration update.

Only `tools` and `mcp_servers` are
      updatable. Full replacement: the provided array becomes the new value. To
      preserve existing entries, GET the session, modify the array, and POST it back.

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

  title: Human-readable session title.

  vault_ids: Vault IDs (`vlt_*`) to attach to the session. Not yet supported; requests
      setting this field are rejected. Reserved for future use.

  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
r   rf   rg   c              3  8   #    U  H  n[        U5      v   M     g 7frC   ri   rk   s     rG   rn   "Sessions.update.<locals>.<genexpr>  rp   rq   rr   r   r   ru   r\   r]   r^   rw   rx   )r   r    r   r|   r
   r   r}   r   r   r1   SessionUpdateParamsr3   r;   rF   r   ru   r\   r]   r^   r_   r`   ra   rb   rc   s              rG   updateSessions.update   s    V XYcXfghh	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`zz?JW " ("!*	 &99 )+Q[ -  
 	
rJ   agent_idagent_versioncreated_at_gtcreated_at_gtecreated_at_ltcreated_at_ltedeployment_idinclude_archivedlimitmemory_store_idorderpagestatusesr_   r`   ra   rb   rc   c               f   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UU[        UUUUUUUUU	U
UUUS.[        R                  5      S9[        S9$ )	K  
List Sessions

Args:
  agent_id: Filter sessions created with this agent ID.

  agent_version: Filter by agent version. Only applies when agent_id is also set.

  created_at_gt: Return sessions created after this time (exclusive).

  created_at_gte: Return sessions created at or after this time (inclusive).

  created_at_lt: Return sessions created before this time (exclusive).

  created_at_lte: Return sessions created at or before this time (inclusive).

  deployment_id: Filter sessions created by this deployment ID.

  include_archived: When true, includes archived sessions. Default: false (exclude archived).

  limit: Maximum number of results to return.

  memory_store_id: Filter sessions whose resources contain a memory_store with this memory store
      ID.

  order: Sort direction for results, ordered by created_at. Defaults to desc (newest
      first).

  page: Opaque pagination cursor from a previous response.

  statuses: Filter by session status. Repeat the parameter to match any of multiple
      statuses.

  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
rf   rg   c              3  8   #    U  H  n[        U5      v   M     g 7frC   ri   rk   s     rG   rn    Sessions.list.<locals>.<genexpr>c  rp   rq   rr   rs   r   r   r   r   r   r   r   r   r   r   r   r   r   r`   ra   rb   rc   queryr   rz   model)r    r   r|   r
   r   _get_api_listr-   r;   r3   r   r/   SessionListParamsrF   r   r   r   r   r   r   r   r   r   r   r   r   r   r_   r`   ra   rb   rc   s                      rG   listSessions.list  s    F	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`!!$,-EF(+'%%$,)6)6*8)6*8)6,<!&+:!& $$, (99!0 +7 " 
 	
rJ   c          
     8   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[        X4XVS9[        S	9$ )
T  
Delete Session

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
r   rf   rg   c              3  8   #    U  H  n[        U5      v   M     g 7frC   ri   rk   s     rG   rn   "Sessions.delete.<locals>.<genexpr>  rp   rq   rr   r   r   rw   r   
r   r    r   r|   r
   r   _deleter   r3   r<   r   s          rG   deleteSessions.delete  s    4 XYcXfghh	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`||?JW(+Q[ 4  
 	
rJ   c          
     8   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[        X4XVS9[        S	9$ )
U  
Archive Session

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
r   rf   rg   c              3  8   #    U  H  n[        U5      v   M     g 7frC   ri   rk   s     rG   rn   #Sessions.archive.<locals>.<genexpr>  rp   rq   rr   +/v1/sessions/{session_id}/archive?beta=truer   rw   r   
r   r    r   r|   r
   r   r}   r   r3   r;   r   s          rG   archiveSessions.archive  s    4 XYcXfghh	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`zzGT^_(+Q[ -  
 	
rJ    )returnr   )r   r"   )r   r4   )r   rS   )r   rX   ru   zsession_create_params.Agentrv   rj   r\   zDict[str, str] | OmitrL   z/Iterable[session_create_params.Resource] | Omitr]   Optional[str] | Omitr^   SequenceNotStr[str] | Omitr_   List[AnthropicBetaParam] | Omitr`   Headers | Nonera   Query | Nonerb   Body | Nonerc   'float | httpx.Timeout | None | NotGivenr   r;   r   rj   r_   r   r`   r   ra   r   rb   r   rc   r   r   r;   r   rj   ru   z/BetaManagedAgentsSessionAgentUpdateParam | Omitr\   z)Optional[Dict[str, Optional[str]]] | Omitr]   r   r^   r   r_   r   r`   r   ra   r   rb   r   rc   r   r   r;   )&r   
str | Omitr   
int | Omitr   Union[str, datetime] | Omitr   r   r   r   r   r   r   r   r   bool | Omitr   r   r   r   r   Literal['asc', 'desc'] | Omitr   r   r   EList[Literal['rescheduling', 'running', 'idle', 'terminated']] | Omitr_   r   r`   r   ra   r   rb   r   rc   r   r   z5SyncBidirectionalPageCursor[BetaManagedAgentsSession]r   rj   r_   r   r`   r   ra   r   rb   r   rc   r   r   r<   __name__
__module____qualname____firstlineno__r(   rH   rL   rO   rT   rY   r   r   r   r   r   r   r   r   __static_attributes__r   rJ   rG   r>   r>   9   s   $ $ ' ' % % - - 3 3 +/EI&*0415 )-$("&;DJ
 +J
 	J

 (J
 CJ
 $J
 .J
 /J
 &J
 "J
  J
 9J
  
"!J
` 26 )-$("&;D-
-
 /	-
 &-
 "-
  -
 9-
 
"-
f BF>B&*0415 )-$("&;DG
G
 ?	G

 <G
 $G
 .G
 /G
 &G
 "G
  G
 9G
 
"G
X  $$(596:596:$((, &*/3Z^15 )-$("&;D-j
 j
 "	j

 3j
 4j
 3j
 4j
 "j
 &j
 j
 $j
 -j
 j
 Xj
  /!j
& &'j
( ")j
*  +j
, 9-j
. 
?/j
` 26 )-$("&;D-
-
 /	-
 &-
 "-
  -
 9-
 
)-
f 26 )-$("&;D-
-
 /	-
 &-
 "-
  -
 9-
 
"-
 -
rJ   c                  .   \ rS rSr\SS j5       r\SS j5       r\SS j5       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rg)r?   i  c                ,    [        U R                  5      $ rC   )r   rD   rE   s    rG   rH   AsyncSessions.events  s    4<<((rJ   c                ,    [        U R                  5      $ rC   )r#   rD   rE   s    rG   rL   AsyncSessions.resources  s    dll++rJ   c                ,    [        U R                  5      $ rC   )r5   rD   rE   s    rG   rO   AsyncSessions.threads  s    DLL))rJ   c                    [        U 5      $ rR   )AsyncSessionsWithRawResponserE   s    rG   rT   AsyncSessions.with_raw_response  s     ,D11rJ   c                    [        U 5      $ rW   )"AsyncSessionsWithStreamingResponserE   s    rG   rY   %AsyncSessions.with_streaming_response  s     2$77rJ   Nr[   c               l  #    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UUUUS.[        R                  5      I Sh  vN [        XXS9[        S	9I Sh  vN $  N N7f)
re   rf   rg   c              3  8   #    U  H  n[        U5      v   M     g 7frC   ri   rk   s     rG   rn   'AsyncSessions.create.<locals>.<genexpr>9  rp   rq   rr   rs   rt   Nrw   rx   )r    r   r|   r
   r   r}   r!   r0   r~   r3   r;   r   s               rG   r   AsyncSessions.create  s     \	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`ZZ$,"&4 (!*"!* &99
 
 )+Q[ -!   
 
 	


s$   BB4B0
B4+B2,B42B4r   c          
     T  #    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[        X4XVS9[        S	9I S
h  vN $  N7f)r   r   rf   rg   c              3  8   #    U  H  n[        U5      v   M     g 7frC   ri   rk   s     rG   rn   )AsyncSessions.retrieve.<locals>.<genexpr>s  rp   rq   rr   r   r   rw   r   Nr   r   s          rG   r   AsyncSessions.retrieveT  s     4 XYcXfghh	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`YY?JW(+Q[ -  
 
 	
 
   BB(!B&"B(r   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S.[        R                  5      I S	h  vN [        XxXS
9[        S9I S	h  vN $  N N7f)r   r   rf   rg   c              3  8   #    U  H  n[        U5      v   M     g 7frC   ri   rk   s     rG   rn   'AsyncSessions.update.<locals>.<genexpr>  rp   rq   rr   r   r   r   Nrw   rx   )r   r    r   r|   r
   r   r}   r   r!   r1   r   r3   r;   r   s              rG   r   AsyncSessions.update  s     V XYcXfghh	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`ZZ?JW," ("!*	 &99  )+Q[ -   
 
 	

s$   B-C/C
0CCCCr   c               f   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UU[        UUUUUUUUU	U
UUUS.[        R                  5      S9[        S9$ )	r   rf   rg   c              3  8   #    U  H  n[        U5      v   M     g 7frC   ri   rk   s     rG   rn   %AsyncSessions.list.<locals>.<genexpr>  rp   rq   rr   rs   r   r   r   )r    r   r|   r
   r   r   r.   r;   r3   r   r/   r   r   s                      rG   r   AsyncSessions.list  s    F	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`!!$-.FG(+'%%$,)6)6*8)6*8)6,<!&+:!& $$, (99!0 +7 " 
 	
rJ   c          
     T  #    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[        X4XVS9[        S	9I S
h  vN $  N7f)r   r   rf   rg   c              3  8   #    U  H  n[        U5      v   M     g 7frC   ri   rk   s     rG   rn   'AsyncSessions.delete.<locals>.<genexpr>W  rp   rq   rr   r   r   rw   r   Nr   r   s          rG   r   AsyncSessions.delete8  s     4 XYcXfghh	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`\\?JW(+Q[ 4 " 
 
 	
 
r   c          
     T  #    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[        X4XVS9[        S	9I S
h  vN $  N7f)r   r   rf   rg   c              3  8   #    U  H  n[        U5      v   M     g 7frC   ri   rk   s     rG   rn   (AsyncSessions.archive.<locals>.<genexpr>  rp   rq   rr   r   r   rw   r   Nr   r   s          rG   r   AsyncSessions.archiveg  s     4 XYcXfghh	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`ZZGT^_(+Q[ -   
 
 	
 
r   r   )r   r   )r   r#   )r   r5   )r   r   )r   r   r   r   r   )&r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r_   r   r`   r   ra   r   rb   r   rc   r   r   z`AsyncPaginator[BetaManagedAgentsSession, AsyncBidirectionalPageCursor[BetaManagedAgentsSession]]r   r   r   rJ   rG   r?   r?     s   ) ) , , * * 2 2 8 8 +/EI&*0415 )-$("&;DJ
 +J
 	J

 (J
 CJ
 $J
 .J
 /J
 &J
 "J
  J
 9J
  
"!J
` 26 )-$("&;D-
-
 /	-
 &-
 "-
  -
 9-
 
"-
f BF>B&*0415 )-$("&;DG
G
 ?	G

 <G
 $G
 .G
 /G
 &G
 "G
  G
 9G
 
"G
X  $$(596:596:$((, &*/3Z^15 )-$("&;D-j
 j
 "	j

 3j
 4j
 3j
 4j
 "j
 &j
 j
 $j
 -j
 j
 Xj
  /!j
& &'j
( ")j
*  +j
, 9-j
. 
j/j
` 26 )-$("&;D-
-
 /	-
 &-
 "-
  -
 9-
 
)-
f 26 )-$("&;D-
-
 /	-
 &-
 "-
  -
 9-
 
"-
 -
rJ   c                  Z    \ rS rSrSS jr\S	S j5       r\S
S j5       r\SS j5       rSr	g)rS   i  c                   Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR
                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        g rC   )		_sessionsr   to_raw_response_wrapperr   r   r   r   r   r   rF   sessionss     rG   __init__ SessionsWithRawResponse.__init__  s    !&>>OO
 )@@
 '>>OO
 %<<MM
	 '>>OO
 (??
rJ   c                @    [        U R                  R                  5      $ rC   )r   r	  rH   rE   s    rG   rH   SessionsWithRawResponse.events  s    $T^^%:%:;;rJ   c                @    [        U R                  R                  5      $ rC   )r$   r	  rL   rE   s    rG   rL   !SessionsWithRawResponse.resources  s    '(@(@AArJ   c                @    [        U R                  R                  5      $ rC   )r6   r	  rO   rE   s    rG   rO   SessionsWithRawResponse.threads  s    %dnn&<&<==rJ   r	  r   r   r   r   r   r   Nr  r>   r   None)r   r   )r   r$   )r   r6   
r   r   r   r   r  r(   rH   rL   rO   r   r   rJ   rG   rS   rS     sE    
, < < B B > >rJ   rS   c                  Z    \ rS rSrSS jr\S	S j5       r\S
S j5       r\SS j5       rSr	g)r   i  c                   Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR
                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        g rC   )	r	  r   async_to_raw_response_wrapperr   r   r   r   r   r   r  s     rG   r  %AsyncSessionsWithRawResponse.__init__  s    !&DDOO
 )FF
 'DDOO
 %BBMM
	 'DDOO
 (EE
rJ   c                @    [        U R                  R                  5      $ rC   )r   r	  rH   rE   s    rG   rH   #AsyncSessionsWithRawResponse.events  s    )$..*?*?@@rJ   c                @    [        U R                  R                  5      $ rC   )r%   r	  rL   rE   s    rG   rL   &AsyncSessionsWithRawResponse.resources  s    ,T^^-E-EFFrJ   c                @    [        U R                  R                  5      $ rC   )r7   r	  rO   rE   s    rG   rO   $AsyncSessionsWithRawResponse.threads  s    *4>>+A+ABBrJ   r  Nr  r?   r   r  )r   r   )r   r%   )r   r7   r  r   rJ   rG   r   r     sI    
, A A G G C CrJ   r   c                  Z    \ rS rSrSS jr\S	S j5       r\S
S j5       r\SS j5       rSr	g)rX   i  c                H   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        g rC   )r	  r+   r   r   r   r   r   r   r  s     rG   r  &SessionsWithStreamingResponse.__init__  s    !2OO
 5
 3OO
 1MM
	 3OO
 4
rJ   c                @    [        U R                  R                  5      $ rC   )r   r	  rH   rE   s    rG   rH   $SessionsWithStreamingResponse.events  s    *4>>+@+@AArJ   c                @    [        U R                  R                  5      $ rC   )r&   r	  rL   rE   s    rG   rL   'SessionsWithStreamingResponse.resources  s    -dnn.F.FGGrJ   c                @    [        U R                  R                  5      $ rC   )r8   r	  rO   rE   s    rG   rO   %SessionsWithStreamingResponse.threads  s    +DNN,B,BCCrJ   r  Nr  )r   r   )r   r&   )r   r8   r  r   rJ   rG   rX   rX     sI    
, B B H H D DrJ   rX   c                  Z    \ rS rSrSS jr\S	S j5       r\S
S j5       r\SS j5       rSr	g)r   i  c                H   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        g rC   )r	  r,   r   r   r   r   r   r   r  s     rG   r  +AsyncSessionsWithStreamingResponse.__init__  s    !8OO
 ;
 9OO
 7MM
	 9OO
 :
rJ   c                @    [        U R                  R                  5      $ rC   )r   r	  rH   rE   s    rG   rH   )AsyncSessionsWithStreamingResponse.events  s    /0E0EFFrJ   c                @    [        U R                  R                  5      $ rC   )r'   r	  rL   rE   s    rG   rL   ,AsyncSessionsWithStreamingResponse.resources  s    24>>3K3KLLrJ   c                @    [        U R                  R                  5      $ rC   )r9   r	  rO   rE   s    rG   rO   *AsyncSessionsWithStreamingResponse.threads"  s    01G1GHHrJ   r  Nr#  )r   r   )r   r'   )r   r9   r  r   rJ   rG   r   r     sI    
, G G M M I IrJ   r   )U
__future__r   typingr   r   r   r   r   r	   	itertoolsr
   typing_extensionsr   httpx r   rH   r   r   r   r   r   r   _typesr   r   r   r   r   r   r   r   _utilsr   r   r   r    r!   rL   r"   r#   r$   r%   r&   r'   _compatr(   	_resourcer)   r*   	_responser+   r,   
paginationr-   r.   
types.betar/   r0   r1   _base_clientr2   r3   threads.threadsr4   r5   r6   r7   r8   r9   types.anthropic_beta_paramr:   &types.beta.beta_managed_agents_sessionr;   .types.beta.beta_managed_agents_deleted_sessionr<   9types.beta.beta_managed_agents_session_agent_update_paramr=   __all__r>   r?   rS   r   rX   r   r   rJ   rG   <module>rJ     s    # 8 8   %  !  ] \ \ g g  ( ; Z T 
 B  > O ^ r
'l
 l
^l
$ l
^!> !>H!C !CH!D !DH!I !IrJ   