o
    ùT·jZ¿  ã                   @  sT  d dl mZ d dlmZmZmZmZmZ d dlm	Z	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 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) ddl*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2 ddl3m4Z4m5Z5m6Z6m7Z7 ddl8m9Z9 ddl:m;Z;m<Z< ddl=m>Z>m?Z? ddl@mAZAmBZB ddlCmDZDmEZE ddlFmGZGmHZH ddlImJZJmKZKmLZLmMZMmNZNmOZO ddlPmQZQmRZRmSZS ddlTmUZUmVZVmWZWmXZX ddlYmZZZ ddl[m\Z\ ddl]m^Z^ ddl_m`Z` ddlambZb ddgZcG dd„ de;ƒZdG dd„ de<ƒZeG d d!„ d!ƒZfG d"d#„ d#ƒZgG d$d%„ d%ƒZhG d&d'„ d'ƒZidS )(é    )Úannotations)ÚDictÚUnionÚMappingÚIterableÚOptional)ÚLiteralÚoverloadNé   )Ú_legacy_responseé   )ÚItemsÚ
AsyncItemsÚItemsWithRawResponseÚAsyncItemsWithRawResponseÚItemsWithStreamingResponseÚAsyncItemsWithStreamingResponse)ÚTurnsÚ
AsyncTurnsÚTurnsWithRawResponseÚAsyncTurnsWithRawResponseÚTurnsWithStreamingResponseÚAsyncTurnsWithStreamingResponse)ÚEventsÚAsyncEventsÚEventsWithRawResponseÚAsyncEventsWithRawResponseÚEventsWithStreamingResponseÚ AsyncEventsWithStreamingResponse)Ú	ArtifactsÚAsyncArtifactsÚArtifactsWithRawResponseÚAsyncArtifactsWithRawResponseÚArtifactsWithStreamingResponseÚ#AsyncArtifactsWithStreamingResponse)ÚBodyÚOmitÚQueryÚHeadersÚNotGivenÚSequenceNotStrÚomitÚ	not_given)Úpath_templateÚrequired_argsÚmaybe_transformÚasync_maybe_transform)Úcached_property)ÚSyncAPIResourceÚAsyncAPIResource)Úto_streamed_response_wrapperÚ"async_to_streamed_response_wrapper)ÚStreamÚAsyncStream)ÚSyncCursorPageÚAsyncCursorPage)ÚAsyncPaginatorÚmake_request_options)Ú	SubagentsÚAsyncSubagentsÚSubagentsWithRawResponseÚAsyncSubagentsWithRawResponseÚSubagentsWithStreamingResponseÚ#AsyncSubagentsWithStreamingResponse)Úsession_list_paramsÚsession_create_paramsÚsession_update_params)ÚToolHandlerÚAsyncToolHandlerÚAgentSessionStreamÚAsyncAgentSessionStream)ÚAgentSession)ÚEnvironmentParam)ÚAgentSessionEvent)ÚAgentSessionDeleted)ÚAgentSessionInputMessageParamÚSessionsÚAsyncSessionsc                   @  óˆ  e Zd ZdededœdXdd„ZedYdd„ƒZedZdd„ƒZed[dd„ƒZ	ed\dd„ƒZ
ed]d d!„ƒZed^d#d$„ƒZed_d&d'„ƒZeeeeeeeddded(œ
d`d:d;„ƒZeeeeeeddded<œ	dad?d;„ƒZeeeeeeddded<œ	dbdBd;„ƒZed)gd)d1gƒeeeeeeddded(œ
dcdDd;„ƒZdddedEœdddFdG„ZeedddedHœdedJdK„ZeeeedddedLœdfdSdT„ZdddedEœdgdVdW„ZdS )hrN   N©Útool_handlersÚidempotency_keyÚextra_headersÚtimeoutÚ
session_idÚstrÚinputú-str | Iterable[AgentSessionInputMessageParam]rR   ú Mapping[str, ToolHandler] | NonerS   ú
str | OmitrT   úHeaders | NonerU   ú(float | httpx2.Timeout | None | NotGivenÚreturnrG   c             	   C  ó   t | ||||||d�S )aM  Stream one turn of an idle session, subscribing before submitting input.

        Use as a context manager. Only one caller may submit input to the session
        while this helper runs. Optional tool handlers receive an arguments dict;
        their results are submitted automatically. See AgentSessionStream for details.
        ©rX   rR   rS   rT   rU   )rG   ©ÚselfrV   rX   rR   rS   rT   rU   © rc   úq/home/dinkstrade/pdmp-scanner/venv/lib/python3.10/site-packages/openai/resources/beta/agents/sessions/sessions.pyÚstreamG   ó   ùzSessions.streamr<   c                 C  ó
   t | jƒS ©N)r<   Ú_client©rb   rc   rc   rd   Ú	subagentsa   ó   
zSessions.subagentsr   c                 C  rg   rh   )r   ri   rj   rc   rc   rd   Ú	artifactse   rl   zSessions.artifactsr   c                 C  rg   rh   )r   ri   rj   rc   rc   rd   Úitemsi   rl   zSessions.itemsr   c                 C  rg   rh   )r   ri   rj   rc   rc   rd   Úeventsm   rl   zSessions.eventsr   c                 C  rg   rh   )r   ri   rj   rc   rc   rd   Úturnsq   rl   zSessions.turnsÚSessionsWithRawResponsec                 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/openai/openai-python#accessing-raw-response-data-eg-headers
        )rq   rj   rc   rc   rd   Úwith_raw_responseu   ó   zSessions.with_raw_responseÚSessionsWithStreamingResponsec                 C  rr   ©zÌ
        An alternative to `.with_raw_response` that doesn't eagerly read the response body.

        For more information, see https://www.github.com/openai/openai-python#with_streaming_response
        )rv   rj   rc   rc   rd   Úwith_streaming_response   ó   z Sessions.with_streaming_response©
ÚagentÚagent_idrX   Úmetadatare   Ú	vault_idsrT   Úextra_queryÚ
extra_bodyrU   ÚenvironmentrJ   r{   ú"session_create_params.Agent | Omitr|   ú@Union[str, Iterable[AgentSessionInputMessageParam], None] | Omitr}   úOptional[Dict[str, str]] | Omitre   úLiteral[False] | Omitr~   ú$Optional[SequenceNotStr[str]] | Omitr   úQuery | Noner€   úBody | NonerI   c                C  ó   dS ©aK  
        Creates a managed agent session, optionally submits initial input, and returns
        the session or streams its events when stream is true. See
        [running sessions](https://developers.openai.com/api/docs/guides/agents-api/sessions).

        Args:
          environment: An inline execution environment or a reference to an environment template.

          agent: Agent configuration. With `agent_id`, supplied fields override the saved agent
              for this session. Without `agent_id`, `model` is required.

          agent_id: The ID of a saved reusable agent. Omit `agent` to use its configuration
              unchanged.

          input: Initial input to submit when the session is created. A string is shorthand for a
              single user message. Required when `environment.type` is `none`, or when
              `stream` is `true` for an environment that is not `self_hosted`; optional for
              self-hosted and non-streaming execution environments.

          metadata: Up to 16 string key-value pairs, with keys up to 64 and values up to 512
              characters. Omission or null defaults to an empty map.

          stream: Whether to stream session events as server-sent events. Defaults to `false`.

          vault_ids: The IDs of vaults made available to the session.

          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
        Nrc   ©rb   r�   r{   r|   rX   r}   re   r~   rT   r   r€   rU   rc   rc   rd   Úcreateˆ   ó   4zSessions.create©	r{   r|   rX   r}   r~   rT   r   r€   rU   úLiteral[True]úStream[AgentSessionEvent]c                C  r‰   ©aK  
        Creates a managed agent session, optionally submits initial input, and returns
        the session or streams its events when stream is true. See
        [running sessions](https://developers.openai.com/api/docs/guides/agents-api/sessions).

        Args:
          environment: An inline execution environment or a reference to an environment template.

          stream: Whether to stream session events as server-sent events. Defaults to `false`.

          agent: Agent configuration. With `agent_id`, supplied fields override the saved agent
              for this session. Without `agent_id`, `model` is required.

          agent_id: The ID of a saved reusable agent. Omit `agent` to use its configuration
              unchanged.

          input: Initial input to submit when the session is created. A string is shorthand for a
              single user message. Required when `environment.type` is `none`, or when
              `stream` is `true` for an environment that is not `self_hosted`; optional for
              self-hosted and non-streaming execution environments.

          metadata: Up to 16 string key-value pairs, with keys up to 64 and values up to 512
              characters. Omission or null defaults to an empty map.

          vault_ids: The IDs of vaults made available to the session.

          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
        Nrc   ©rb   r�   re   r{   r|   rX   r}   r~   rT   r   r€   rU   rc   rc   rd   rŒ   ¾   r�   Úboolú(AgentSession | Stream[AgentSessionEvent]c                C  r‰   r‘   rc   r’   rc   rc   rd   rŒ   ô   r�   ú%Literal[False] | Literal[True] | Omitc                C  sb   ddi|pi ¥}| j dt|||||||dœ|rtjntjƒt||	|
|ddid�t|p+dtt d	�S ©
NúOpenAI-Betaú	agents=v1ú/agents/sessions)r�   r{   r|   rX   r}   re   r~   Úbearer_authT©rT   r   r€   rU   ÚsecurityF)ÚbodyÚoptionsÚcast_tore   Ú
stream_cls)	Ú_postr/   rC   ÚSessionCreateParamsStreamingÚSessionCreateParamsNonStreamingr;   rI   r6   rK   r‹   rc   rc   rd   rŒ   *  s6   ù
ÿôûç©rT   r   r€   rU   c             	   C  óL   |s	t d|›�ƒ‚ddi|pi ¥}| jtd|d�t||||ddid�td	�S )
áÖ  Retrieves the current state of a managed agent session.

        See
        [managing sessions](https://developers.openai.com/api/docs/guides/agents-api/sessions/manage).

        Args:
          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—   r˜   ú/agents/sessions/{session_id}©rV   rš   Tr›   ©rž   rŸ   ©Ú
ValueErrorÚ_getr-   r;   rI   ©rb   rV   rT   r   r€   rU   rc   rc   rd   ÚretrieveY  s   
û÷zSessions.retrieve©r{   r}   rT   r   r€   rU   ú"session_update_params.Agent | Omitc             
   C  s\   |s	t d|›�ƒ‚ddi|pi ¥}| jtd|d�t||dœtjƒt||||ddid	�td
�S )á^  Updates session metadata, model, reasoning effort, or service tier.

        Model
        settings apply to subsequent turns. Omitted fields are unchanged. See
        [managing sessions](https://developers.openai.com/api/docs/guides/agents-api/sessions/manage).

        Args:
          agent: Model settings for subsequent turns. Omitted fields stay unchanged.

          metadata: Replaces all metadata. Omit to leave unchanged, or pass null or {} to clear it.
              Up to 16 string key-value pairs, with keys up to 64 and values up to 512
              characters.

          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—   r˜   r¨   r©   ©r{   r}   rš   Tr›   ©r�   rž   rŸ   )r¬   r¡   r-   r/   rD   ÚSessionUpdateParamsr;   rI   ©rb   rV   r{   r}   rT   r   r€   rU   rc   rc   rd   Úupdate�  s(   "
þûûðzSessions.update©Úafterr|   ÚlimitÚorderrT   r   r€   rU   r¹   rº   úOptional[int] | Omitr»   úLiteral['asc', 'desc'] | OmitúSyncCursorPage[AgentSession]c          	      C  óL   ddi|pi ¥}| j dtt t||||t||||dœtjƒddid�td�S ©	a"  
        Lists managed agent sessions using ID-based pagination and the requested sort
        order. See
        [managing sessions](https://developers.openai.com/api/docs/guides/agents-api/sessions/manage).

        Args:
          after: Return resources after this resource ID in the selected order.

          agent_id: Only return sessions whose root agent has this ID. Omit to return sessions for
              all agents.

          limit: The maximum number of resources to return.

          order: Sort order by the `created_at` timestamp. Use `asc` for ascending order or
              `desc` for descending order. Defaults to `desc`.

              - `asc` - Returns resources in ascending order.
              - `desc` - Returns resources in descending order.

          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˜   r™   )r¹   r|   rº   r»   rš   T)rT   r   r€   rU   Úqueryrœ   )Úpagerž   Úmodel)Ú_get_api_listr8   rI   r;   r/   rB   ÚSessionListParams©	rb   r¹   r|   rº   r»   rT   r   r€   rU   rc   rc   rd   Úlist¹  ó*   )üù	òízSessions.listrL   c             	   C  r¥   )
áÖ  
        Removes a managed agent session from the public API and returns a deletion
        confirmation. If backend execution has ended, deletion can cancel a still-open
        public turn and abandon unpublished outputs. Running execution must be cancelled
        first. Physical cleanup may continue asynchronously. See
        [managing sessions](https://developers.openai.com/api/docs/guides/agents-api/sessions/manage).

        Args:
          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—   r˜   r¨   r©   rš   Tr›   rª   ©r¬   Ú_deleter-   r;   rL   r®   rc   rc   rd   Údeleteù  s   
û÷zSessions.delete)rV   rW   rX   rY   rR   rZ   rS   r[   rT   r\   rU   r]   r^   rG   )r^   r<   )r^   r   )r^   r   )r^   r   )r^   r   )r^   rq   )r^   rv   ©r�   rJ   r{   r‚   r|   r[   rX   rƒ   r}   r„   re   r…   r~   r†   rT   r\   r   r‡   r€   rˆ   rU   r]   r^   rI   )r�   rJ   re   r�   r{   r‚   r|   r[   rX   rƒ   r}   r„   r~   r†   rT   r\   r   r‡   r€   rˆ   rU   r]   r^   r�   )r�   rJ   re   r“   r{   r‚   r|   r[   rX   rƒ   r}   r„   r~   r†   rT   r\   r   r‡   r€   rˆ   rU   r]   r^   r”   )r�   rJ   r{   r‚   r|   r[   rX   rƒ   r}   r„   re   r•   r~   r†   rT   r\   r   r‡   r€   rˆ   rU   r]   r^   r”   ©rV   rW   rT   r\   r   r‡   r€   rˆ   rU   r]   r^   rI   ©rV   rW   r{   r±   r}   r„   rT   r\   r   r‡   r€   rˆ   rU   r]   r^   rI   )r¹   r[   r|   r[   rº   r¼   r»   r½   rT   r\   r   r‡   r€   rˆ   rU   r]   r^   r¾   ©rV   rW   rT   r\   r   r‡   r€   rˆ   rU   r]   r^   rL   ©Ú__name__Ú
__module__Ú__qualname__r+   r,   re   r1   rk   rm   rn   ro   rp   rt   rx   r	   rŒ   r.   r¯   r·   rÇ   rÌ   rc   rc   rc   rd   rN   F   ó¸    ø	ñ5ñ5ñ5ñ4÷,õ;ôF÷c                   @  rP   )hrO   NrQ   rV   rW   rX   rY   rR   ú%Mapping[str, AsyncToolHandler] | NonerS   r[   rT   r\   rU   r]   r^   rH   c             	   C  r_   )aY  Stream one turn of an idle session, subscribing before submitting input.

        Use as an async context manager. Only one caller may submit input to the session
        while this helper runs. Optional tool handlers receive an arguments dict;
        their results are submitted automatically. See AsyncAgentSessionStream for details.
        r`   )rH   ra   rc   rc   rd   re   %  rf   zAsyncSessions.streamr=   c                 C  rg   rh   )r=   ri   rj   rc   rc   rd   rk   ?  rl   zAsyncSessions.subagentsr    c                 C  rg   rh   )r    ri   rj   rc   rc   rd   rm   C  rl   zAsyncSessions.artifactsr   c                 C  rg   rh   )r   ri   rj   rc   rc   rd   rn   G  rl   zAsyncSessions.itemsr   c                 C  rg   rh   )r   ri   rj   rc   rc   rd   ro   K  rl   zAsyncSessions.eventsr   c                 C  rg   rh   )r   ri   rj   rc   rc   rd   rp   O  rl   zAsyncSessions.turnsÚAsyncSessionsWithRawResponsec                 C  rr   rs   )r×   rj   rc   rc   rd   rt   S  ru   zAsyncSessions.with_raw_responseÚ"AsyncSessionsWithStreamingResponsec                 C  rr   rw   )rØ   rj   rc   rc   rd   rx   ]  ry   z%AsyncSessions.with_streaming_responserz   r�   rJ   r{   r‚   r|   rƒ   r}   r„   re   r…   r~   r†   r   r‡   r€   rˆ   rI   c                Ã  ó   �dS rŠ   rc   r‹   rc   rc   rd   rŒ   f  ó   €4zAsyncSessions.createrŽ   r�   úAsyncStream[AgentSessionEvent]c                Ã  rÙ   r‘   rc   r’   rc   rc   rd   rŒ   œ  rÚ   r“   ú-AgentSession | AsyncStream[AgentSessionEvent]c                Ã  rÙ   r‘   rc   r’   rc   rc   rd   rŒ   Ò  rÚ   r•   c                Ã  sp   �ddi|pi ¥}| j dt|||||||dœ|rtjntjƒI d H t||	|
|ddid�t|p/dtt d	�I d H S r–   )	r¡   r0   rC   r¢   r£   r;   rI   r7   rK   r‹   rc   rc   rd   rŒ     s8   €ù
ÿôûçr¤   c             	   Ã  óT   �|s
t d|›�ƒ‚ddi|pi ¥}| jtd|d�t||||ddid�td	�I d
H S )r¦   r§   r—   r˜   r¨   r©   rš   Tr›   rª   Nr«   r®   rc   rc   rd   r¯   7  s   €
û÷zAsyncSessions.retriever°   r±   c             
   Ã  sj   �|s
t d|›�ƒ‚ddi|pi ¥}| jtd|d�t||dœtjƒI dH t||||dd	id
�td�I dH S )r²   r§   r—   r˜   r¨   r©   r³   Nrš   Tr›   r´   )r¬   r¡   r-   r0   rD   rµ   r;   rI   r¶   rc   rc   rd   r·   _  s*   €"
þûûðzAsyncSessions.updater¸   r¹   rº   r¼   r»   r½   ú;AsyncPaginator[AgentSession, AsyncCursorPage[AgentSession]]c          	      C  r¿   rÀ   )rÄ   r9   rI   r;   r/   rB   rÅ   rÆ   rc   rc   rd   rÇ   —  rÈ   zAsyncSessions.listrL   c             	   Ã  rÝ   )rÉ   r§   r—   r˜   r¨   r©   rš   Tr›   rª   NrÊ   r®   rc   rc   rd   rÌ   ×  s   €
û÷zAsyncSessions.delete)rV   rW   rX   rY   rR   rÖ   rS   r[   rT   r\   rU   r]   r^   rH   )r^   r=   )r^   r    )r^   r   )r^   r   )r^   r   )r^   r×   )r^   rØ   rÍ   )r�   rJ   re   r�   r{   r‚   r|   r[   rX   rƒ   r}   r„   r~   r†   rT   r\   r   r‡   r€   rˆ   rU   r]   r^   rÛ   )r�   rJ   re   r“   r{   r‚   r|   r[   rX   rƒ   r}   r„   r~   r†   rT   r\   r   r‡   r€   rˆ   rU   r]   r^   rÜ   )r�   rJ   r{   r‚   r|   r[   rX   rƒ   r}   r„   re   r•   r~   r†   rT   r\   r   r‡   r€   rˆ   rU   r]   r^   rÜ   rÎ   rÏ   )r¹   r[   r|   r[   rº   r¼   r»   r½   rT   r\   r   r‡   r€   rˆ   rU   r]   r^   rÞ   rÐ   rÑ   rc   rc   rc   rd   rO   $  rÕ   c                   @  ó\   e Zd Zddd„Zeddd	„ƒZeddd„ƒZeddd„ƒZeddd„ƒZeddd„ƒZ	dS )rq   ÚsessionsrN   r^   ÚNonec                 C  óP   || _ t |j¡| _t |j¡| _t |j¡| _t |j¡| _t |j¡| _d S rh   )Ú	_sessionsr   Úto_raw_response_wrapperrŒ   r¯   r·   rÇ   rÌ   ©rb   rà   rc   rc   rd   Ú__init__  ó    ÿÿÿÿ
ÿz SessionsWithRawResponse.__init__r>   c                 C  ó   t | jjƒS rh   )r>   rã   rk   rj   rc   rc   rd   rk     ó   z!SessionsWithRawResponse.subagentsr!   c                 C  rè   rh   )r!   rã   rm   rj   rc   rc   rd   rm     ré   z!SessionsWithRawResponse.artifactsr   c                 C  rè   rh   )r   rã   rn   rj   rc   rc   rd   rn     ré   zSessionsWithRawResponse.itemsr   c                 C  rè   rh   )r   rã   ro   rj   rc   rc   rd   ro   "  ré   zSessionsWithRawResponse.eventsr   c                 C  rè   rh   )r   rã   rp   rj   rc   rc   rd   rp   &  ré   zSessionsWithRawResponse.turnsN©rà   rN   r^   rá   )r^   r>   )r^   r!   )r^   r   )r^   r   )r^   r   ©
rÒ   rÓ   rÔ   ræ   r1   rk   rm   rn   ro   rp   rc   rc   rc   rd   rq     ó    
rq   c                   @  rß   )r×   rà   rO   r^   rá   c                 C  râ   rh   )rã   r   Úasync_to_raw_response_wrapperrŒ   r¯   r·   rÇ   rÌ   rå   rc   rc   rd   ræ   ,  rç   z%AsyncSessionsWithRawResponse.__init__r?   c                 C  rè   rh   )r?   rã   rk   rj   rc   rc   rd   rk   ?  ré   z&AsyncSessionsWithRawResponse.subagentsr"   c                 C  rè   rh   )r"   rã   rm   rj   rc   rc   rd   rm   C  ré   z&AsyncSessionsWithRawResponse.artifactsr   c                 C  rè   rh   )r   rã   rn   rj   rc   rc   rd   rn   G  ré   z"AsyncSessionsWithRawResponse.itemsr   c                 C  rè   rh   )r   rã   ro   rj   rc   rc   rd   ro   K  ré   z#AsyncSessionsWithRawResponse.eventsr   c                 C  rè   rh   )r   rã   rp   rj   rc   rc   rd   rp   O  ré   z"AsyncSessionsWithRawResponse.turnsN©rà   rO   r^   rá   )r^   r?   )r^   r"   )r^   r   )r^   r   )r^   r   rë   rc   rc   rc   rd   r×   +  rì   r×   c                   @  rß   )rv   rà   rN   r^   rá   c                 C  óF   || _ t|jƒ| _t|jƒ| _t|jƒ| _t|jƒ| _t|jƒ| _d S rh   )rã   r4   rŒ   r¯   r·   rÇ   rÌ   rå   rc   rc   rd   ræ   U  ó    ÿÿÿÿ
ÿz&SessionsWithStreamingResponse.__init__r@   c                 C  rè   rh   )r@   rã   rk   rj   rc   rc   rd   rk   h  ré   z'SessionsWithStreamingResponse.subagentsr#   c                 C  rè   rh   )r#   rã   rm   rj   rc   rc   rd   rm   l  ré   z'SessionsWithStreamingResponse.artifactsr   c                 C  rè   rh   )r   rã   rn   rj   rc   rc   rd   rn   p  ré   z#SessionsWithStreamingResponse.itemsr   c                 C  rè   rh   )r   rã   ro   rj   rc   rc   rd   ro   t  ré   z$SessionsWithStreamingResponse.eventsr   c                 C  rè   rh   )r   rã   rp   rj   rc   rc   rd   rp   x  ré   z#SessionsWithStreamingResponse.turnsNrê   )r^   r@   )r^   r#   )r^   r   )r^   r   )r^   r   rë   rc   rc   rc   rd   rv   T  rì   rv   c                   @  rß   )rØ   rà   rO   r^   rá   c                 C  rï   rh   )rã   r5   rŒ   r¯   r·   rÇ   rÌ   rå   rc   rc   rd   ræ   ~  rð   z+AsyncSessionsWithStreamingResponse.__init__rA   c                 C  rè   rh   )rA   rã   rk   rj   rc   rc   rd   rk   ‘  ré   z,AsyncSessionsWithStreamingResponse.subagentsr$   c                 C  rè   rh   )r$   rã   rm   rj   rc   rc   rd   rm   •  ré   z,AsyncSessionsWithStreamingResponse.artifactsr   c                 C  rè   rh   )r   rã   rn   rj   rc   rc   rd   rn   ™  ré   z(AsyncSessionsWithStreamingResponse.itemsr   c                 C  rè   rh   )r   rã   ro   rj   rc   rc   rd   ro   �  ré   z)AsyncSessionsWithStreamingResponse.eventsr   c                 C  rè   rh   )r   rã   rp   rj   rc   rc   rd   rp   ¡  ré   z(AsyncSessionsWithStreamingResponse.turnsNrî   )r^   rA   )r^   r$   )r^   r   )r^   r   )r^   r   rë   rc   rc   rc   rd   rØ   }  rì   rØ   )jÚ
__future__r   Útypingr   r   r   r   r   Útyping_extensionsr   r	   Úhttpx2Ú r   rn   r   r   r   r   r   r   rp   r   r   r   r   r   r   ro   r   r   r   r   r   r   rm   r   r    r!   r"   r#   r$   Ú_typesr%   r&   r'   r(   r)   r*   r+   r,   Ú_utilsr-   r.   r/   r0   Ú_compatr1   Ú	_resourcer2   r3   Ú	_responser4   r5   Ú
_streamingr6   r7   Ú
paginationr8   r9   Ú_base_clientr:   r;   Úsubagents.subagentsr<   r=   r>   r?   r@   rA   Útypes.beta.agentsrB   rC   rD   Úlib.streaming.agentsrE   rF   rG   rH   Útypes.beta.agent_sessionrI   Útypes.beta.environment_paramrJ   Útypes.beta.agent_session_eventrK   Ú types.beta.agent_session_deletedrL   Ú,types.beta.agent_session_input_message_paramrM   Ú__all__rN   rO   rq   r×   rv   rØ   rc   rc   rc   rd   Ú<module>   sL       (    a   a)))