
    b6i                     l    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	      Z G d
 d      Zy)    N   )AsyncClientWrapperSyncClientWrapper)RequestOptions)GetAgentLinkResponseModel   )AsyncRawLinkClientRawLinkClientc                   b    e Zd ZdefdZedefd       Zdddede	j                  e   defd	Zy)

LinkClientclient_wrapperc                &    t        |      | _        y N)r   )r
   _raw_clientselfr   s     z/root/.openclaw/workspace/visionaryfx/venv/lib/python3.12/site-packages/elevenlabs/conversational_ai/agents/link/client.py__init__zLinkClient.__init__   s    (G    returnc                     | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawLinkClient
        r   r   s    r   with_raw_responsezLinkClient.with_raw_response        r   Nrequest_optionsagent_idr   c                T    | j                   j                  ||      }|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   	_responses       r   r!   zLinkClient.get   s)    < $$((?(S	~~r   )__name__
__module____qualname__r   r   propertyr
   r   strtypingOptionalr   r   r!    r   r   r   r      sY    H*; H  =     TX171P	"r   r   c                   b    e Zd ZdefdZedefd       Zdddede	j                  e   defd	Zy)
AsyncLinkClientr   c                &    t        |      | _        y r   )r	   r   r   s     r   r   zAsyncLinkClient.__init__=   s    -^Lr   r   c                     | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawLinkClient
        r   r   s    r   r   z!AsyncLinkClient.with_raw_response@   r   r   Nr   r   r   c                p   K   | j                   j                  ||       d{   }|j                  S 7 w)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#   s       r   r!   zAsyncLinkClient.getK   s7     L **..x.YY	~~ Zs   !646)r%   r&   r'   r   r   r(   r	   r   r)   r*   r+   r   r   r!   r,   r   r   r.   r.   <   sZ    M*< M  #5     TX''171P'	"'r   r.   )r*   core.client_wrapperr   r   core.request_optionsr   #types.get_agent_link_response_modelr   
raw_clientr	   r
   r   r.   r,   r   r   <module>r6      s+     I 3 M 9. .b6 6r   