o
    lWiw                     @   s^  d dl Z d dlmZ ddlmZ ddlmZmZ ddlm	Z	m
Z
 ddlmZ ddlmZ dd	lmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z  ddl!m"Z" ddl#m$Z$ ddl%m&Z& ddl'm(Z( ddl)m*Z* ddl+m,Z, ddl-m.Z. ddl/m0Z0 ddl1m2Z2 e 3e j4dZ5G dd dZ6G dd dZ7dS )     N)JSONDecodeError   )ApiError)AsyncClientWrapperSyncClientWrapper)AsyncHttpResponseHttpResponse)jsonable_encoder)RequestOptions)'convert_and_respect_annotation_metadata)construct_type)UnprocessableEntityError)+AdhocAgentConfigOverrideForTestRequestModel)!AgentPlatformSettingsRequestModel)#AgentSimulatedChatTestResponseModel)AgentSortBy)AgentWorkflowRequestModel)#ConversationSimulationSpecification)ConversationalConfig)CreateAgentResponseModel)GetAgentResponseModel)GetAgentsPageResponseModel)#GetTestSuiteInvocationResponseModel)HttpValidationError)PromptEvaluationCriteria)SingleTestRunRequestModel)SortDirection.c                   @     e Zd ZdefddZeeeedddedeje	 deje
 d	eje d
ejeje  deje dee fddZdddedeje dee fddZdddedeje ded fddZeeeeedddedeje deje	 deje
 d	eje d
ejeje  deje dee fddZdddddddddeje deje deje deje deje deje deje dee fdd Zedd!ded	eje deje dee fd"d#Zeedd$ded%ed&ejeje  d'eje deje dee fd(d)Zeedd$ded%ed&ejeje  d'eje deje ded fd*d+Z eedd,ded-eje! d.eje" d/eje deje dee# fd0d1Z$dS )2RawAgentsClientclient_wrapperc                C   
   || _ d S N_client_wrapperselfr    r&   r/var/www/html/asistente-voz-ia/venv/lib/python3.10/site-packages/elevenlabs/conversational_ai/agents/raw_client.py__init__#      
zRawAgentsClient.__init__Nplatform_settingsworkflownametagsrequest_optionsconversation_configr+   r,   r-   r.   r/   returnc          
   
   C   s  | j jjddt|tddt|tddt|tdd||dddi|td}z>d	|j  kr0d
k rEn nt	
ttt| d}t||dW S |jdkr]tt|jt	
ttt| dd| }	W n tyu   t|jt|j|jdw t|jt|j|	d)a  
        Create an agent from a config object

        Parameters
        ----------
        conversation_config : ConversationalConfig
            Conversation configuration for an agent

        platform_settings : typing.Optional[AgentPlatformSettingsRequestModel]
            Platform settings for the agent are all settings that aren't related to the conversation orchestration and content.

        workflow : typing.Optional[AgentWorkflowRequestModel]
            Workflow for the agent. This is used to define the flow of the conversation and how the agent interacts with tools.

        name : typing.Optional[str]
            A name to make the agent easier to find

        tags : typing.Optional[typing.Sequence[str]]
            Tags to help classify and filter the agent

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

        Returns
        -------
        HttpResponse[CreateAgentResponseModel]
            Successful Response
        v1/convai/agents/createPOSTwriteobject_
annotation	directionr0   r+   r,   r-   r.   content-typeapplication/jsonmethodjsonheadersr/   omit   ,  type_r6   responsedata  r?   bodystatus_coder?   rJ   )r#   httpx_clientrequestr   r   r   r   OMITrL   typingcastr   r   r>   r   r   dictr?   r   r   r   text
r%   r0   r+   r,   r-   r.   r/   	_response_data_response_jsonr&   r&   r'   create&   s\   &

zRawAgentsClient.creater/   agent_idc             	   C   s   | j jjdt| d|d}z>d|j  krdk r0n ntttt|	 d}t
||dW S |jdkrHtt|jtttt|	 dd	|	 }W n ty`   t|jt|j|jd
w t|jt|j|d
)a  
        Retrieve config for an agent

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

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

        Returns
        -------
        HttpResponse[GetAgentResponseModel]
            Successful Response
        v1/convai/agents/GETr=   r/   rA   rB   rC   rE   rH   rI   rK   )r#   rM   rN   r	   rL   rP   rQ   r   r   r>   r   r   rR   r?   r   r   r   rS   r%   rZ   r/   rU   rV   rW   r&   r&   r'   get|   s>   

zRawAgentsClient.getc             	   C   s   | j jjdt| d|d}z2d|j  krdk r$n nt|ddW S |jdkr<tt|jt	
ttt| d	d
| }W n tyT   t|jt|j|jdw t|jt|j|d)aF  
        Delete an agent

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

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

        Returns
        -------
        HttpResponse[None]
        r[   DELETEr]   rA   rB   NrE   rH   rC   rI   rK   )r#   rM   rN   r	   rL   r   r   rR   r?   rP   rQ   r   r   r>   r   r   rS   r%   rZ   r/   rU   rW   r&   r&   r'   delete   s0   

zRawAgentsClient.deleter0   r+   r,   r-   r.   r/   c             
   C   s  | j jjdt| dt|tddt|tddt|tdd||dddi|td}z>d	|j	  kr5d
k rJn nt
ttt| d}	t||	dW S |j	dkrbtt|jt
ttt| dd| }
W n tyz   t|j	t|j|jdw t|j	t|j|
d)aO  
        Patches an Agent settings

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

        conversation_config : typing.Optional[ConversationalConfig]
            Conversation configuration for an agent

        platform_settings : typing.Optional[AgentPlatformSettingsRequestModel]
            Platform settings for the agent are all settings that aren't related to the conversation orchestration and content.

        workflow : typing.Optional[AgentWorkflowRequestModel]
            Workflow for the agent. This is used to define the flow of the conversation and how the agent interacts with tools.

        name : typing.Optional[str]
            A name to make the agent easier to find

        tags : typing.Optional[typing.Sequence[str]]
            Tags to help classify and filter the agent

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

        Returns
        -------
        HttpResponse[GetAgentResponseModel]
            Successful Response
        r[   PATCHr4   r5   r9   r:   r;   r<   rA   rB   rC   rE   rH   rI   rK   )r#   rM   rN   r	   r   r   r   r   rO   rL   rP   rQ   r   r   r>   r   r   rR   r?   r   r   r   rS   r%   rZ   r0   r+   r,   r-   r.   r/   rU   rV   rW   r&   r&   r'   update   s\   *

zRawAgentsClient.update	page_sizesearcharchivedsort_directionsort_bycursorr/   rh   ri   rj   rk   rl   rm   c             
   C   s   | j jjdd||||||d|d}z>d|j  krdk r3n ntttt| d}	t	||	dW S |jd	krKt
t|jtttt| dd
| }
W n tyc   t|jt|j|jdw t|jt|j|
d)a  
        Returns a list of your agents and their metadata.

        Parameters
        ----------
        page_size : typing.Optional[int]
            How many Agents to return at maximum. Can not exceed 100, defaults to 30.

        search : typing.Optional[str]
            Search by agents name.

        archived : typing.Optional[bool]
            Filter agents by archived status

        sort_direction : typing.Optional[SortDirection]
            The direction to sort the results

        sort_by : typing.Optional[AgentSortBy]
            The field to sort the results by

        cursor : typing.Optional[str]
            Used for fetching next page. Cursor is returned in the response.

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

        Returns
        -------
        HttpResponse[GetAgentsPageResponseModel]
            Successful Response
        v1/convai/agentsr\   rh   ri   rj   rk   rl   rm   r=   paramsr/   rA   rB   rC   rE   rH   rI   rK   )r#   rM   rN   rL   rP   rQ   r   r   r>   r   r   rR   r?   r   r   r   rS   r%   rh   ri   rj   rk   rl   rm   r/   rU   rV   rW   r&   r&   r'   list0  sL   *

zRawAgentsClient.listr-   r/   c             	   C   s   | j jjdt| ddd|iddi|td}z>d|j  kr#d	k r8n nttt	t|
 d
}t||dW S |jdkrPtt|jttt	t|
 d
d|
 }W n tyh   t|jt|j|jdw t|jt|j|d)a  
        Create a new agent by duplicating an existing one

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

        name : typing.Optional[str]
            A name to make the agent easier to find

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

        Returns
        -------
        HttpResponse[CreateAgentResponseModel]
            Successful Response
        r[   
/duplicater3   r-   r:   r;   r<   rA   rB   rC   rE   rH   rI   rK   )r#   rM   rN   r	   rO   rL   rP   rQ   r   r   r>   r   r   rR   r?   r   r   r   rS   r%   rZ   r-   r/   rU   rV   rW   r&   r&   r'   	duplicate  sH   

zRawAgentsClient.duplicateextra_evaluation_criterianew_turns_limitr/   simulation_specificationry   rz   c          	   	   C   s  | j jjdt| ddt|tddt|tjt dd|dddi|t	d	}z>d
|j
  kr2dk rGn ntttt| d}t||dW S |j
dkr_tt|jtttt| dd| }W n tyw   t|j
t|j|jdw t|j
t|j|d)a\  
        Run a conversation between the agent and a simulated user.

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

        simulation_specification : ConversationSimulationSpecification
            A specification detailing how the conversation should be simulated

        extra_evaluation_criteria : typing.Optional[typing.Sequence[PromptEvaluationCriteria]]
            A list of evaluation criteria to test

        new_turns_limit : typing.Optional[int]
            Maximum number of new turns to generate in the conversation simulation

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

        Returns
        -------
        HttpResponse[AgentSimulatedChatTestResponseModel]
            Successful Response
        r[   /simulate-conversationr3   r4   r5   r{   ry   rz   r:   r;   r<   rA   rB   rC   rE   rH   rI   rK   )r#   rM   rN   r	   r   r   rP   Sequencer   rO   rL   rQ   r   r   r>   r   r   rR   r?   r   r   r   rS   	r%   rZ   r{   ry   rz   r/   rU   rV   rW   r&   r&   r'   simulate_conversation  sX   "

z%RawAgentsClient.simulate_conversationc             	   C   s   | j jjdt| ddt|tddt|tjt dd|dddi|t	d	}z2d
|j
  kr2dk r;n nt|ddW S |j
dkrStt|jtttt| dd| }W n tyk   t|j
t|j|jdw t|j
t|j|d)a  
        Run a conversation between the agent and a simulated user and stream back the response. Response is streamed back as partial lists of messages that should be concatenated and once the conversation has complete a single final message with the conversation analysis will be sent.

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

        simulation_specification : ConversationSimulationSpecification
            A specification detailing how the conversation should be simulated

        extra_evaluation_criteria : typing.Optional[typing.Sequence[PromptEvaluationCriteria]]
            A list of evaluation criteria to test

        new_turns_limit : typing.Optional[int]
            Maximum number of new turns to generate in the conversation simulation

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

        Returns
        -------
        HttpResponse[None]
        r[   /simulate-conversation/streamr3   r4   r5   r}   r:   r;   r<   rA   rB   NrE   rH   rC   rI   rK   )r#   rM   rN   r	   r   r   rP   r~   r   rO   rL   r   r   rR   r?   rQ   r   r   r>   r   r   rS   r%   rZ   r{   ry   rz   r/   rU   rW   r&   r&   r'   simulate_conversation_stream  sJ   !

z,RawAgentsClient.simulate_conversation_streamagent_config_override	branch_idr/   testsr   r   c          	   	   C   s  | j jjdt| ddt|tjt ddt|tdd|dddi|t	d	}z>d
|j
  kr2dk rGn ntttt| d}t||dW S |j
dkr_tt|jtttt| dd| }W n tyw   t|j
t|j|jdw t|j
t|j|d)a  
        Run selected tests on the agent with provided configuration. If the agent configuration is provided, it will be used to override default agent configuration.

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

        tests : typing.Sequence[SingleTestRunRequestModel]
            List of tests to run on the agent

        agent_config_override : typing.Optional[AdhocAgentConfigOverrideForTestRequestModel]
            Configuration overrides to use for testing. If not provided, the agent's default configuration will be used.

        branch_id : typing.Optional[str]
            ID of the branch to run the tests on. If not provided, the tests will be run on the agent default configuration.

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

        Returns
        -------
        HttpResponse[GetTestSuiteInvocationResponseModel]
            Successful Response
        r[   
/run-testsr3   r4   r5   r   r   r   r:   r;   r<   rA   rB   rC   rE   rH   rI   rK   )r#   rM   rN   r	   r   rP   r~   r   r   rO   rL   rQ   r   r   r>   r   r   rR   r?   r   r   r   rS   	r%   rZ   r   r   r   r/   rU   rV   rW   r&   r&   r'   	run_testsY  sX   "

zRawAgentsClient.run_tests)%__name__
__module____qualname__r   r(   rO   r   rP   Optionalr   r   strr~   r
   r   r   rX   r   r_   rb   rf   intboolr   r   r   rs   rw   r   r   r   r   r   r   r   r   r   r&   r&   r&   r'   r   "   s   	
W
&2,	

]	

U
E
U
Mr   c                   @   r   )2AsyncRawAgentsClientr   c                C   r    r!   r"   r$   r&   r&   r'   r(     r)   zAsyncRawAgentsClient.__init__Nr*   r0   r+   r,   r-   r.   r/   r1   c          
   
      s
  | j jjddt|tddt|tddt|tdd||dddi|tdI d	H }z>d
|j  kr4dk rIn nt	
ttt| d}t||dW S |jdkratt|jt	
ttt| dd| }	W n tyy   t|jt|j|jdw t|jt|j|	d)a  
        Create an agent from a config object

        Parameters
        ----------
        conversation_config : ConversationalConfig
            Conversation configuration for an agent

        platform_settings : typing.Optional[AgentPlatformSettingsRequestModel]
            Platform settings for the agent are all settings that aren't related to the conversation orchestration and content.

        workflow : typing.Optional[AgentWorkflowRequestModel]
            Workflow for the agent. This is used to define the flow of the conversation and how the agent interacts with tools.

        name : typing.Optional[str]
            A name to make the agent easier to find

        tags : typing.Optional[typing.Sequence[str]]
            Tags to help classify and filter the agent

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

        Returns
        -------
        AsyncHttpResponse[CreateAgentResponseModel]
            Successful Response
        r2   r3   r4   r5   r9   r:   r;   r<   NrA   rB   rC   rE   rH   rI   rK   )r#   rM   rN   r   r   r   r   rO   rL   rP   rQ   r   r   r>   r   r   rR   r?   r   r   r   rS   rT   r&   r&   r'   rX     s^   &

zAsyncRawAgentsClient.createrY   rZ   c             	      s   | j jjdt| d|dI dH }z>d|j  krdk r4n ntttt|	 d}t
||dW S |jd	krLtt|jtttt|	 dd
|	 }W n tyd   t|jt|j|jdw t|jt|j|d)a  
        Retrieve config for an agent

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

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

        Returns
        -------
        AsyncHttpResponse[GetAgentResponseModel]
            Successful Response
        r[   r\   r]   NrA   rB   rC   rE   rH   rI   rK   )r#   rM   rN   r	   rL   rP   rQ   r   r   r>   r   r   rR   r?   r   r   r   rS   r^   r&   r&   r'   r_     s@   

zAsyncRawAgentsClient.getc             	      s   | j jjdt| d|dI dH }z2d|j  krdk r(n nt|ddW S |jdkr@tt|jt	
ttt| d	d
| }W n tyX   t|jt|j|jdw t|jt|j|d)aK  
        Delete an agent

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

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

        Returns
        -------
        AsyncHttpResponse[None]
        r[   r`   r]   NrA   rB   rE   rH   rC   rI   rK   )r#   rM   rN   r	   rL   r   r   rR   r?   rP   rQ   r   r   r>   r   r   rS   ra   r&   r&   r'   rb   6  s2   

zAsyncRawAgentsClient.deleterc   c             
      s  | j jjdt| dt|tddt|tddt|tdd||dddi|tdI d	H }z>d
|j	  kr9dk rNn nt
ttt| d}	t||	dW S |j	dkrftt|jt
ttt| dd| }
W n ty~   t|j	t|j|jdw t|j	t|j|
d)aT  
        Patches an Agent settings

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

        conversation_config : typing.Optional[ConversationalConfig]
            Conversation configuration for an agent

        platform_settings : typing.Optional[AgentPlatformSettingsRequestModel]
            Platform settings for the agent are all settings that aren't related to the conversation orchestration and content.

        workflow : typing.Optional[AgentWorkflowRequestModel]
            Workflow for the agent. This is used to define the flow of the conversation and how the agent interacts with tools.

        name : typing.Optional[str]
            A name to make the agent easier to find

        tags : typing.Optional[typing.Sequence[str]]
            Tags to help classify and filter the agent

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

        Returns
        -------
        AsyncHttpResponse[GetAgentResponseModel]
            Successful Response
        r[   rd   r4   r5   r9   r:   r;   r<   NrA   rB   rC   rE   rH   rI   rK   )r#   rM   rN   r	   r   r   r   r   rO   rL   rP   rQ   r   r   r>   r   r   rR   r?   r   r   r   rS   re   r&   r&   r'   rf   `  s^   *

zAsyncRawAgentsClient.updaterg   rh   ri   rj   rk   rl   rm   c             
      s   | j jjdd||||||d|dI dH }z>d|j  kr"dk r7n ntttt| d}	t	||	d	W S |jd
krOt
t|jtttt| dd| }
W n tyg   t|jt|j|jdw t|jt|j|
d)a  
        Returns a list of your agents and their metadata.

        Parameters
        ----------
        page_size : typing.Optional[int]
            How many Agents to return at maximum. Can not exceed 100, defaults to 30.

        search : typing.Optional[str]
            Search by agents name.

        archived : typing.Optional[bool]
            Filter agents by archived status

        sort_direction : typing.Optional[SortDirection]
            The direction to sort the results

        sort_by : typing.Optional[AgentSortBy]
            The field to sort the results by

        cursor : typing.Optional[str]
            Used for fetching next page. Cursor is returned in the response.

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

        Returns
        -------
        AsyncHttpResponse[GetAgentsPageResponseModel]
            Successful Response
        rn   r\   ro   rp   NrA   rB   rC   rE   rH   rI   rK   )r#   rM   rN   rL   rP   rQ   r   r   r>   r   r   rR   r?   r   r   r   rS   rr   r&   r&   r'   rs     sN   *

zAsyncRawAgentsClient.listrt   c             	      s   | j jjdt| ddd|iddi|tdI dH }z>d	|j  kr'd
k r<n nttt	t|
 d}t||dW S |jdkrTtt|jttt	t|
 dd|
 }W n tyl   t|jt|j|jdw t|jt|j|d)a  
        Create a new agent by duplicating an existing one

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

        name : typing.Optional[str]
            A name to make the agent easier to find

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

        Returns
        -------
        AsyncHttpResponse[CreateAgentResponseModel]
            Successful Response
        r[   ru   r3   r-   r:   r;   r<   NrA   rB   rC   rE   rH   rI   rK   )r#   rM   rN   r	   rO   rL   rP   rQ   r   r   r>   r   r   rR   r?   r   r   r   rS   rv   r&   r&   r'   rw     sJ   

zAsyncRawAgentsClient.duplicaterx   r{   ry   rz   c          	   	      s  | j jjdt| ddt|tddt|tjt dd|dddi|t	d	I d
H }z>d|j
  kr6dk rKn ntttt| d}t||dW S |j
dkrctt|jtttt| dd| }W n ty{   t|j
t|j|jdw t|j
t|j|d)aa  
        Run a conversation between the agent and a simulated user.

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

        simulation_specification : ConversationSimulationSpecification
            A specification detailing how the conversation should be simulated

        extra_evaluation_criteria : typing.Optional[typing.Sequence[PromptEvaluationCriteria]]
            A list of evaluation criteria to test

        new_turns_limit : typing.Optional[int]
            Maximum number of new turns to generate in the conversation simulation

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

        Returns
        -------
        AsyncHttpResponse[AgentSimulatedChatTestResponseModel]
            Successful Response
        r[   r|   r3   r4   r5   r}   r:   r;   r<   NrA   rB   rC   rE   rH   rI   rK   )r#   rM   rN   r	   r   r   rP   r~   r   rO   rL   rQ   r   r   r>   r   r   rR   r?   r   r   r   rS   r   r&   r&   r'   r   K  sZ   "

z*AsyncRawAgentsClient.simulate_conversationc             	      s   | j jjdt| ddt|tddt|tjt dd|dddi|t	d	I d
H }z2d|j
  kr6dk r?n nt|d
dW S |j
dkrWtt|jtttt| dd| }W n tyo   t|j
t|j|jdw t|j
t|j|d)a  
        Run a conversation between the agent and a simulated user and stream back the response. Response is streamed back as partial lists of messages that should be concatenated and once the conversation has complete a single final message with the conversation analysis will be sent.

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

        simulation_specification : ConversationSimulationSpecification
            A specification detailing how the conversation should be simulated

        extra_evaluation_criteria : typing.Optional[typing.Sequence[PromptEvaluationCriteria]]
            A list of evaluation criteria to test

        new_turns_limit : typing.Optional[int]
            Maximum number of new turns to generate in the conversation simulation

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

        Returns
        -------
        AsyncHttpResponse[None]
        r[   r   r3   r4   r5   r}   r:   r;   r<   NrA   rB   rE   rH   rC   rI   rK   )r#   rM   rN   r	   r   r   rP   r~   r   rO   rL   r   r   rR   r?   rQ   r   r   r>   r   r   rS   r   r&   r&   r'   r     sL   !

z1AsyncRawAgentsClient.simulate_conversation_streamr   r   r   r   c          	   	      s  | j jjdt| ddt|tjt ddt|tdd|dddi|t	d	I d
H }z>d|j
  kr6dk rKn ntttt| d}t||dW S |j
dkrctt|jtttt| dd| }W n ty{   t|j
t|j|jdw t|j
t|j|d)a   
        Run selected tests on the agent with provided configuration. If the agent configuration is provided, it will be used to override default agent configuration.

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

        tests : typing.Sequence[SingleTestRunRequestModel]
            List of tests to run on the agent

        agent_config_override : typing.Optional[AdhocAgentConfigOverrideForTestRequestModel]
            Configuration overrides to use for testing. If not provided, the agent's default configuration will be used.

        branch_id : typing.Optional[str]
            ID of the branch to run the tests on. If not provided, the tests will be run on the agent default configuration.

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

        Returns
        -------
        AsyncHttpResponse[GetTestSuiteInvocationResponseModel]
            Successful Response
        r[   r   r3   r4   r5   r   r:   r;   r<   NrA   rB   rC   rE   rH   rI   rK   )r#   rM   rN   r	   r   rP   r~   r   r   rO   rL   rQ   r   r   r>   r   r   rR   r?   r   r   r   rS   r   r&   r&   r'   r     sZ   "

zAsyncRawAgentsClient.run_tests)%r   r   r   r   r(   rO   r   rP   r   r   r   r   r~   r
   r   r   rX   r   r_   rb   rf   r   r   r   r   r   rs   rw   r   r   r   r   r   r   r   r   r   r&   r&   r&   r'   r     s    	
W
3
.	

]	

U
E
U
Mr   )8rP   json.decoderr   core.api_errorr   core.client_wrapperr   r   core.http_responser   r   core.jsonable_encoderr	   core.request_optionsr
   core.serializationr   core.unchecked_base_modelr   !errors.unprocessable_entity_errorr   8types.adhoc_agent_config_override_for_test_request_modelr   +types.agent_platform_settings_request_modelr   .types.agent_simulated_chat_test_response_modelr   types.agent_sort_byr   "types.agent_workflow_request_modelr   +types.conversation_simulation_specificationr   types.conversational_configr   !types.create_agent_response_modelr   types.get_agent_response_modelr   $types.get_agents_page_response_modelr   .types.get_test_suite_invocation_response_modelr   types.http_validation_errorr    types.prompt_evaluation_criteriar   #types.single_test_run_request_modelr   types.sort_directionr   rQ   AnyrO   r   r   r&   r&   r&   r'   <module>   sB        