o
    lWi                     @   s`   d dl Z ddlmZmZ ddlmZ ddlmZ ddlm	Z	m
Z
 G dd	 d	ZG d
d dZdS )    N   )AsyncClientWrapperSyncClientWrapper)RequestOptions)GetAgentLinkResponseModel   )AsyncRawLinkClientRawLinkClientc                   @   N   e Zd ZdefddZedefddZddd	ed
e	j
e defddZdS )
LinkClientclient_wrapperc                C      t |d| _d S N)r   )r	   _raw_clientselfr    r   s/var/www/html/asistente-voz-ia/venv/lib/python3.10/site-packages/elevenlabs/conversational_ai/agents/link/client.py__init__      zLinkClient.__init__returnc                 C      | j S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawLinkClient
        r   r   r   r   r   with_raw_response      	zLinkClient.with_raw_responseNrequest_optionsagent_idr   c                C   s   | j j||d}|jS )a  
        Get the current link used to share the agent with others

        Parameters
        ----------
        agent_id : str
            The id of an agent. This is returned on agent creation.

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        GetAgentLinkResponseModel
            Successful Response

        Examples
        --------
        from elevenlabs import ElevenLabs

        client = ElevenLabs(
            api_key="YOUR_API_KEY",
        )
        client.conversational_ai.agents.link.get(
            agent_id="agent_3701k3ttaq12ewp8b7qv5rfyszkz",
        )
        r   r   getdatar   r   r   	_responser   r   r   r       s   zLinkClient.get)__name__
__module____qualname__r   r   propertyr	   r   strtypingOptionalr   r   r    r   r   r   r   r          r   c                   @   r
   )AsyncLinkClientr   c                C   r   r   )r   r   r   r   r   r   r   =   r   zAsyncLinkClient.__init__r   c                 C   r   )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawLinkClient
        r   r   r   r   r   r   @   r   z!AsyncLinkClient.with_raw_responseNr   r   r   c                   s   | j j||dI dH }|jS )a  
        Get the current link used to share the agent with others

        Parameters
        ----------
        agent_id : str
            The id of an agent. This is returned on agent creation.

        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        GetAgentLinkResponseModel
            Successful Response

        Examples
        --------
        import asyncio

        from elevenlabs import AsyncElevenLabs

        client = AsyncElevenLabs(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.conversational_ai.agents.link.get(
                agent_id="agent_3701k3ttaq12ewp8b7qv5rfyszkz",
            )


        asyncio.run(main())
        r   Nr   r"   r   r   r   r    K   s   &zAsyncLinkClient.get)r$   r%   r&   r   r   r'   r   r   r(   r)   r*   r   r   r    r   r   r   r   r,   <   r+   r,   )r)   core.client_wrapperr   r   core.request_optionsr   #types.get_agent_link_response_modelr   
raw_clientr   r	   r   r,   r   r   r   r   <module>   s   1