
    4Rj                       d dl mZ d dlmZmZmZmZmZ 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 ddlmZ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$m%Z% d	dl&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z, ddl-m.Z. ddl/m0Z0m1Z1 ddl2m3Z3m4Z4 ddl5m6Z6m7Z7 ddl8m9Z9m:Z:m;Z; ddl<m=Z=m>Z> d	dl?m@Z@mAZAmBZBmCZCmDZDmEZE ddlFmGZG ddlHmIZI ddlJmKZK ddlLmMZM ddgZN G d de0      ZO G d de1      ZP G d d      ZQ G d d       ZR G d! d"      ZS G d# d$      ZTy)%    )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                     e Zd Zedd       Zedd       Zedd       Zedd       Zedd       Ze	e	e	e	e	ddde
d		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZe	ddde
d		 	 	 	 	 	 	 	 	 	 	 	 	 dd
Ze	e	e	e	e	ddde
d		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZe	e	e	e	e	e	e	e	e	e	e	e	e	e	ddde
d	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZe	ddde
d		 	 	 	 	 	 	 	 	 	 	 	 	 ddZe	ddde
d		 	 	 	 	 	 	 	 	 	 	 	 	 ddZy)r>   c                ,    t        | j                        S N)r   _clientselfs    r/var/www/html/meridian/meridian-ai/venv/lib/python3.12/site-packages/anthropic/resources/beta/sessions/sessions.pyeventszSessions.events:   s    dll##    c                ,    t        | j                        S rB   )r"   rC   rD   s    rF   	resourceszSessions.resources>   s    &&rH   c                ,    t        | j                        S rB   )r4   rC   rD   s    rF   threadszSessions.threadsB   s    t||$$rH   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
        )SessionsWithRawResponserD   s    rF   with_raw_responsezSessions.with_raw_responseF   s     't,,rH   c                    t        |       S 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
        )SessionsWithStreamingResponserD   s    rF   with_streaming_responsez Sessions.with_streaming_responseP   s     -T22rH   N	metadatarJ   title	vault_idsbetasextra_headersextra_query
extra_bodytimeoutc               .   i t        dt        |      r#dj                  t        d |D        dg            nt        i      |xs i }ddi|xs i }| j                  dt        ||||||dt        j                        t        ||	|
|      t              S )	>  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  2   K   | ]  }t        |        y wrB   str.0es     rF   	<genexpr>z"Sessions.create.<locals>.<genexpr>        5Lc!f5L   managed-agents-2026-04-01/v1/sessions?beta=trueagentenvironment_idrV   rJ   rW   rX   rZ   r[   r\   r]   bodyoptionscast_to)r    r   joinr
   r   _postr   r0   SessionCreateParamsr3   r;   rE   rn   ro   rV   rJ   rW   rX   rY   rZ   r[   r\   r]   s               rF   createzSessions.createY   s    \	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`zz$ "&4 (!*"!* &99
 )+Q[el -!  
 	
rH   rY   rZ   r[   r\   r]   c          
     $   |st        d|      i t        dt        |      r#dj                  t	        d |D        dg            nt
        i      |xs i }ddi|xs i }| j                  t        d|      t        ||||      t        	      S )
  
        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 r`   ra   c              3  2   K   | ]  }t        |        y wrB   rc   re   s     rF   rh   z$Sessions.retrieve.<locals>.<genexpr>   ri   rj   rk   #/v1/sessions/{session_id}?beta=true
session_idrp   rs   rt   

ValueErrorr    r   ru   r
   r   _getr   r3   r;   rE   r   rY   rZ   r[   r\   r]   s          rF   retrievezSessions.retrieve   s    4 XYcXfghh	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`yy?JW(+Q[el -  
 	
rH   	rn   rV   rW   rX   rY   rZ   r[   r\   r]   c       	   
     `   |st        d|      i t        dt        |      r#dj                  t	        d |D        dg            nt
        i      |xs i }ddi|xs i }| j                  t        d|      t        ||||dt        j                        t        |||	|
	      t        
      S )  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}   r`   ra   c              3  2   K   | ]  }t        |        y wrB   rc   re   s     rF   rh   z"Sessions.update.<locals>.<genexpr>  ri   rj   rk   r   r   rn   rV   rW   rX   rp   rq   )r   r    r   ru   r
   r   rv   r   r   r1   SessionUpdateParamsr3   r;   rE   r   rn   rV   rW   rX   rY   rZ   r[   r\   r]   s              rF   updatezSessions.update   s    V XYcXfghh	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`zz?JW " ("!*	 &99 )+Q[el -  
 	
rH   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statusesrY   rZ   r[   r\   r]   c               T   i t        dt        |      r#dj                  t        d |D        dg            nt        i      |xs i }ddi|xs i }| j                  dt        t           t        ||||t        |||||||||	|
|||dt        j                              t              S )	  
        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
        r`   ra   c              3  2   K   | ]  }t        |        y wrB   rc   re   s     rF   rh   z Sessions.list.<locals>.<genexpr>c  ri   rj   rk   rl   r   r   r   r   r   r   r   r   r   r   r   r   r   rZ   r[   r\   r]   queryr   rs   model)r    r   ru   r
   r   _get_api_listr-   r;   r3   r   r/   SessionListParamsrE   r   r   r   r   r   r   r   r   r   r   r   r   r   rY   rZ   r[   r\   r]   s                      rF   listzSessions.list  s    F	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`!!$,-EF(+'%%$,)6)6*8)6*8)6,<!&+:!& $$, (99!0 +7 " 
 	
rH   c          
     $   |st        d|      i t        dt        |      r#dj                  t	        d |D        dg            nt
        i      |xs i }ddi|xs i }| j                  t        d|      t        ||||      t        	      S )
  
        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}   r`   ra   c              3  2   K   | ]  }t        |        y wrB   rc   re   s     rF   rh   z"Sessions.delete.<locals>.<genexpr>  ri   rj   rk   r   r   rp   r   
r   r    r   ru   r
   r   _deleter   r3   r<   r   s          rF   deletezSessions.delete  s    4 XYcXfghh	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`||?JW(+Q[el 4  
 	
rH   c          
     $   |st        d|      i t        dt        |      r#dj                  t	        d |D        dg            nt
        i      |xs i }ddi|xs i }| j                  t        d|      t        ||||      t        	      S )
  
        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}   r`   ra   c              3  2   K   | ]  }t        |        y wrB   rc   re   s     rF   rh   z#Sessions.archive.<locals>.<genexpr>  ri   rj   rk   +/v1/sessions/{session_id}/archive?beta=truer   rp   r   
r   r    r   ru   r
   r   rv   r   r3   r;   r   s          rF   archivezSessions.archive  s    4 XYcXfghh	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`zzGT^_(+Q[el -  
 	
rH   )returnr   )r   r"   )r   r4   )r   rO   )r   rS   rn   zsession_create_params.Agentro   rd   rV   zDict[str, str] | OmitrJ   z/Iterable[session_create_params.Resource] | OmitrW   Optional[str] | OmitrX   SequenceNotStr[str] | OmitrY   List[AnthropicBetaParam] | OmitrZ   Headers | Noner[   Query | Noner\   Body | Noner]   'float | httpx.Timeout | None | NotGivenr   r;   r   rd   rY   r   rZ   r   r[   r   r\   r   r]   r   r   r;   r   rd   rn   z/BetaManagedAgentsSessionAgentUpdateParam | OmitrV   z)Optional[Dict[str, Optional[str]]] | OmitrW   r   rX   r   rY   r   rZ   r   r[   r   r\   r   r]   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']] | OmitrY   r   rZ   r   r[   r   r\   r   r]   r   r   z5SyncBidirectionalPageCursor[BetaManagedAgentsSession]r   rd   rY   r   rZ   r   r[   r   r\   r   r]   r   r   r<   __name__
__module____qualname__r(   rG   rJ   rL   rP   rT   r   r   ry   r   r   r   r   r    rH   rF   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-
 
"-
rH   c                     e Zd Zedd       Zedd       Zedd       Zedd       Zedd       Ze	e	e	e	e	ddde
d		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZe	ddde
d		 	 	 	 	 	 	 	 	 	 	 	 	 dd
Ze	e	e	e	e	ddde
d		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZe	e	e	e	e	e	e	e	e	e	e	e	e	e	ddde
d	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZe	ddde
d		 	 	 	 	 	 	 	 	 	 	 	 	 ddZe	ddde
d		 	 	 	 	 	 	 	 	 	 	 	 	 ddZy)r?   c                ,    t        | j                        S rB   )r   rC   rD   s    rF   rG   zAsyncSessions.events  s    4<<((rH   c                ,    t        | j                        S rB   )r#   rC   rD   s    rF   rJ   zAsyncSessions.resources  s    dll++rH   c                ,    t        | j                        S rB   )r5   rC   rD   s    rF   rL   zAsyncSessions.threads  s    DLL))rH   c                    t        |       S rN   )AsyncSessionsWithRawResponserD   s    rF   rP   zAsyncSessions.with_raw_response  s     ,D11rH   c                    t        |       S rR   )"AsyncSessionsWithStreamingResponserD   s    rF   rT   z%AsyncSessions.with_streaming_response  s     2$77rH   NrU   c               ^  K   i t        dt        |      r#dj                  t        d |D        dg            nt        i      |xs i }ddi|xs i }| j                  dt        ||||||dt        j                         d{   t        ||	|
|      t        	       d{   S 7 $7 w)
r_   r`   ra   c              3  2   K   | ]  }t        |        y wrB   rc   re   s     rF   rh   z'AsyncSessions.create.<locals>.<genexpr>9  ri   rj   rk   rl   rm   Nrp   rq   )r    r   ru   r
   r   rv   r!   r0   rw   r3   r;   rx   s               rF   ry   zAsyncSessions.create  s     \	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`ZZ$,"&4 (!*"!* &99
 
 )+Q[el -!   
 
 	


s$   BB-B)
B-$B+%B-+B-rz   c          
     @  K   |st        d|      i t        dt        |      r#dj                  t	        d |D        dg            nt
        i      |xs i }ddi|xs i }| j                  t        d|      t        ||||      t        	       d
{   S 7 w)r|   r}   r`   ra   c              3  2   K   | ]  }t        |        y wrB   rc   re   s     rF   rh   z)AsyncSessions.retrieve.<locals>.<genexpr>s  ri   rj   rk   r   r   rp   r   Nr   r   s          rF   r   zAsyncSessions.retrieveT  s     4 XYcXfghh	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`YY?JW(+Q[el -  
 
 	
 
   BBBBr   c       	   
       K   |st        d|      i t        dt        |      r#dj                  t	        d |D        dg            nt
        i      |xs i }ddi|xs i }| j                  t        d|      t        ||||dt        j                         d	{   t        |||	|

      t               d	{   S 7 $7 w)r   r}   r`   ra   c              3  2   K   | ]  }t        |        y wrB   rc   re   s     rF   rh   z'AsyncSessions.update.<locals>.<genexpr>  ri   rj   rk   r   r   r   Nrp   rq   )r   r    r   ru   r
   r   rv   r   r!   r1   r   r3   r;   r   s              rF   r   zAsyncSessions.update  s    V XYcXfghh	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`ZZ?JW," ("!*	 &99  )+Q[el -   
 
 	

s$   BCC
C=C>CCr   c               T   i t        dt        |      r#dj                  t        d |D        dg            nt        i      |xs i }ddi|xs i }| j                  dt        t           t        ||||t        |||||||||	|
|||dt        j                              t              S )	r   r`   ra   c              3  2   K   | ]  }t        |        y wrB   rc   re   s     rF   rh   z%AsyncSessions.list.<locals>.<genexpr>  ri   rj   rk   rl   r   r   r   )r    r   ru   r
   r   r   r.   r;   r3   r   r/   r   r   s                      rF   r   zAsyncSessions.list  s    F	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`!!$-.FG(+'%%$,)6)6*8)6*8)6,<!&+:!& $$, (99!0 +7 " 
 	
rH   c          
     @  K   |st        d|      i t        dt        |      r#dj                  t	        d |D        dg            nt
        i      |xs i }ddi|xs i }| j                  t        d|      t        ||||      t        	       d
{   S 7 w)r   r}   r`   ra   c              3  2   K   | ]  }t        |        y wrB   rc   re   s     rF   rh   z'AsyncSessions.delete.<locals>.<genexpr>W  ri   rj   rk   r   r   rp   r   Nr   r   s          rF   r   zAsyncSessions.delete8  s     4 XYcXfghh	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`\\?JW(+Q[el 4 " 
 
 	
 
r   c          
     @  K   |st        d|      i t        dt        |      r#dj                  t	        d |D        dg            nt
        i      |xs i }ddi|xs i }| j                  t        d|      t        ||||      t        	       d
{   S 7 w)r   r}   r`   ra   c              3  2   K   | ]  }t        |        y wrB   rc   re   s     rF   rh   z(AsyncSessions.archive.<locals>.<genexpr>  ri   rj   rk   r   r   rp   r   Nr   r   s          rF   r   zAsyncSessions.archiveg  s     4 XYcXfghh	
$ '*hhu5Le5LOjNk/l&m"	
 "	
 *+F`=K^\^`ZZGT^_(+Q[el -   
 
 	
 
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   rY   r   rZ   r   r[   r   r\   r   r]   r   r   z`AsyncPaginator[BetaManagedAgentsSession, AsyncBidirectionalPageCursor[BetaManagedAgentsSession]]r   r   r   rH   rF   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-
 
"-
rH   c                  J    e Zd ZddZedd       Zedd       Zed	d       Zy)
rO   c                   || _         t        j                  |j                        | _        t        j                  |j                        | _        t        j                  |j
                        | _        t        j                  |j                        | _        t        j                  |j                        | _        t        j                  |j                        | _        y rB   )		_sessionsr   to_raw_response_wrapperry   r   r   r   r   r   rE   sessionss     rF   __init__z SessionsWithRawResponse.__init__  s    !&>>OO
 )@@
 '>>OO
 %<<MM
	 '>>OO
 (??
rH   c                @    t        | j                  j                        S rB   )r   r   rG   rD   s    rF   rG   zSessionsWithRawResponse.events  s    $T^^%:%:;;rH   c                @    t        | j                  j                        S rB   )r$   r   rJ   rD   s    rF   rJ   z!SessionsWithRawResponse.resources  s    '(@(@AArH   c                @    t        | j                  j                        S rB   )r6   r   rL   rD   s    rF   rL   zSessionsWithRawResponse.threads  s    %dnn&<&<==rH   Nr   r>   r   None)r   r   )r   r$   )r   r6   r   r   r   r   r(   rG   rJ   rL   r   rH   rF   rO   rO     sE    
, < < B B > >rH   rO   c                  J    e Zd ZddZedd       Zedd       Zed	d       Zy)
r   c                   || _         t        j                  |j                        | _        t        j                  |j                        | _        t        j                  |j
                        | _        t        j                  |j                        | _        t        j                  |j                        | _        t        j                  |j                        | _        y rB   )	r   r   async_to_raw_response_wrapperry   r   r   r   r   r   r   s     rF   r   z%AsyncSessionsWithRawResponse.__init__  s    !&DDOO
 )FF
 'DDOO
 %BBMM
	 'DDOO
 (EE
rH   c                @    t        | j                  j                        S rB   )r   r   rG   rD   s    rF   rG   z#AsyncSessionsWithRawResponse.events  s    )$..*?*?@@rH   c                @    t        | j                  j                        S rB   )r%   r   rJ   rD   s    rF   rJ   z&AsyncSessionsWithRawResponse.resources  s    ,T^^-E-EFFrH   c                @    t        | j                  j                        S rB   )r7   r   rL   rD   s    rF   rL   z$AsyncSessionsWithRawResponse.threads  s    *4>>+A+ABBrH   Nr   r?   r   r   )r   r   )r   r%   )r   r7   r   r   rH   rF   r   r     sI    
, A A G G C CrH   r   c                  J    e Zd ZddZedd       Zedd       Zed	d       Zy)
rS   c                J   || _         t        |j                        | _        t        |j                        | _        t        |j                        | _        t        |j
                        | _        t        |j                        | _        t        |j                        | _        y rB   )r   r+   ry   r   r   r   r   r   r   s     rF   r   z&SessionsWithStreamingResponse.__init__  s    !2OO
 5
 3OO
 1MM
	 3OO
 4
rH   c                @    t        | j                  j                        S rB   )r   r   rG   rD   s    rF   rG   z$SessionsWithStreamingResponse.events  s    *4>>+@+@AArH   c                @    t        | j                  j                        S rB   )r&   r   rJ   rD   s    rF   rJ   z'SessionsWithStreamingResponse.resources  s    -dnn.F.FGGrH   c                @    t        | j                  j                        S rB   )r8   r   rL   rD   s    rF   rL   z%SessionsWithStreamingResponse.threads  s    +DNN,B,BCCrH   Nr   )r   r   )r   r&   )r   r8   r   r   rH   rF   rS   rS     sI    
, B B H H D DrH   rS   c                  J    e Zd ZddZedd       Zedd       Zed	d       Zy)
r   c                J   || _         t        |j                        | _        t        |j                        | _        t        |j                        | _        t        |j
                        | _        t        |j                        | _        t        |j                        | _        y rB   )r   r,   ry   r   r   r   r   r   r   s     rF   r   z+AsyncSessionsWithStreamingResponse.__init__  s    !8OO
 ;
 9OO
 7MM
	 9OO
 :
rH   c                @    t        | j                  j                        S rB   )r   r   rG   rD   s    rF   rG   z)AsyncSessionsWithStreamingResponse.events  s    /0E0EFFrH   c                @    t        | j                  j                        S rB   )r'   r   rJ   rD   s    rF   rJ   z,AsyncSessionsWithStreamingResponse.resources  s    24>>3K3KLLrH   c                @    t        | j                  j                        S rB   )r9   r   rL   rD   s    rF   rL   z*AsyncSessionsWithStreamingResponse.threads"  s    01G1GHHrH   Nr   )r   r   )r   r'   )r   r9   r   r   rH   rF   r   r     sI    
, G G M M I IrH   r   )U
__future__r   typingr   r   r   r   r   r	   	itertoolsr
   typing_extensionsr   httpx r   rG   r   r   r   r   r   r   _typesr   r   r   r   r   r   r   r   _utilsr   r   r   r    r!   rJ   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?   rO   r   rS   r   r   rH   rF   <module>r     s    # 8 8   %  !  ] \ \ g g  ( ; Z T 
 B  > O ^ r
'l
 l
^l
$ l
^!> !>H!C !CH!D !DH!I !IrH   