Get test
Gets 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
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.
check_any_tool_matches
If set to True this test will pass if any tool call returned by the LLM matches the criteria. Otherwise it will fail if more than one tool is returned by the agent.
dynamic_variables
Dynamic variables to replace in the agent config during testing
type
Allowed values:
from_conversation_metadata
Metadata of a conversation this test was created from (if applicable).