o
    lWi                     @   sn   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
 e e jdZG d	d
 d
ZG dd dZdS )    N   )AsyncClientWrapperSyncClientWrapper)RequestOptions)UserFeedbackScore   )AsyncRawFeedbackClientRawFeedbackClient.c                	   @   \   e Zd ZdefddZedefddZeddd	e	d
e
je de
je de
jfddZdS )FeedbackClientclient_wrapperc                C      t |d| _d S N)r   )r	   _raw_clientselfr    r   ~/var/www/html/asistente-voz-ia/venv/lib/python3.10/site-packages/elevenlabs/conversational_ai/conversations/feedback/client.py__init__      zFeedbackClient.__init__returnc                 C      | j S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawFeedbackClient
        r   r   r   r   r   with_raw_response      	z FeedbackClient.with_raw_responseNfeedbackrequest_optionsconversation_idr   r   c                C   s   | j j|||d}|jS )aC  
        Send the feedback for the given conversation

        Parameters
        ----------
        conversation_id : str
            The id of the conversation you're taking the action on.

        feedback : typing.Optional[UserFeedbackScore]
            Either 'like' or 'dislike' to indicate the feedback for the conversation.

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

        Returns
        -------
        typing.Any
            Successful Response

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

        client = ElevenLabs(
            api_key="YOUR_API_KEY",
        )
        client.conversational_ai.conversations.feedback.create(
            conversation_id="21m00Tcm4TlvDq8ikWAM",
            feedback="like",
        )
        r   r   createdatar   r   r   r   	_responser   r   r   r!      s   &zFeedbackClient.create)__name__
__module____qualname__r   r   propertyr	   r   OMITstrtypingOptionalr   r   Anyr!   r   r   r   r   r          r   c                	   @   r
   )AsyncFeedbackClientr   c                C   r   r   )r   r   r   r   r   r   r   H   r   zAsyncFeedbackClient.__init__r   c                 C   r   )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawFeedbackClient
        r   r   r   r   r   r   K   r   z%AsyncFeedbackClient.with_raw_responseNr   r   r   r   c                   s    | j j|||dI dH }|jS )a  
        Send the feedback for the given conversation

        Parameters
        ----------
        conversation_id : str
            The id of the conversation you're taking the action on.

        feedback : typing.Optional[UserFeedbackScore]
            Either 'like' or 'dislike' to indicate the feedback for the conversation.

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

        Returns
        -------
        typing.Any
            Successful Response

        Examples
        --------
        import asyncio

        from elevenlabs import AsyncElevenLabs

        client = AsyncElevenLabs(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.conversational_ai.conversations.feedback.create(
                conversation_id="21m00Tcm4TlvDq8ikWAM",
                feedback="like",
            )


        asyncio.run(main())
        r   Nr    r#   r   r   r   r!   V   s   .zAsyncFeedbackClient.create)r%   r&   r'   r   r   r(   r   r   r)   r*   r+   r,   r   r   r-   r!   r   r   r   r   r/   G   r.   r/   )r+   core.client_wrapperr   r   core.request_optionsr   types.user_feedback_scorer   
raw_clientr   r	   castr-   r)   r   r/   r   r   r   r   <module>   s   9