Update test
Updates an agent response test by ID.
Path parameters
test_id
The id of a chat response test. This is returned on test creation.
Headers
xi-api-key
Request
This endpoint expects an object.
chat_history
success_condition
A prompt that evaluates whether the agent's response is successful. Should return True or False.
success_examples
Non-empty list of example responses that should be considered successful
failure_examples
Non-empty list of example responses that should be considered failures
name
tool_call_parameters
How to evaluate the agent’s tool call (if any). If empty, the tool call is not evaluated.
dynamic_variables
Dynamic variables to replace in the agent config during testing
Response
Successful Response
chat_history
success_condition
A prompt that evaluates whether the agent's response is successful. Should return True or False.
success_examples
Non-empty list of example responses that should be considered successful
failure_examples
Non-empty list of example responses that should be considered failures
id
name
tool_call_parameters
How to evaluate the agent’s tool call (if any). If empty, the tool call is not evaluated.
dynamic_variables
Dynamic variables to replace in the agent config during testing