Agent testing
List agent test runs
Newest first, with transcripts. testId keeps one test’s.
GET
/
api
/
v2
/
agents
/
{agentId}
/
test-runs
List agent test runs
curl --request GET \
--url https://app.cntillion.com/api/v2/agents/{agentId}/test-runs \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.cntillion.com/api/v2/agents/{agentId}/test-runs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.cntillion.com/api/v2/agents/{agentId}/test-runs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.cntillion.com/api/v2/agents/{agentId}/test-runs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.cntillion.com/api/v2/agents/{agentId}/test-runs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.cntillion.com/api/v2/agents/{agentId}/test-runs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.cntillion.com/api/v2/agents/{agentId}/test-runs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"groupingStatus": "pending",
"suite": {
"id": "<string>",
"repeats": 2,
"size": 2
},
"configuration": {
"name": "<string>",
"simulatedUser": "",
"successCriterion": "",
"maxTurns": 25,
"expectedActions": [
"<string>"
],
"actionResponses": [
{
"actionId": "<string>",
"mode": "mock",
"response": "<string>",
"isError": true,
"when": "<string>",
"conditions": [
{
"name": "<string>",
"validation": "anything",
"value": "<string>"
}
]
}
],
"channel": "action-preview",
"environment": "<string>",
"target": {
"type": "draft",
"id": "<string>"
},
"agentOverrides": {
"instructions": "<string>",
"guardrails": "<string>",
"greeting": "<string>",
"model": "<string>",
"temperature": 0.5,
"defaultLanguage": "<string>"
},
"voiceOverrides": {
"pipelineMode": "duplex",
"realtimeModel": "openai/gpt-live-1",
"duplexVoice": "<string>",
"model": "<string>",
"temperature": 0.5,
"voiceProvider": "centillion",
"voiceId": "<string>",
"voiceName": "<string>",
"voiceLanguage": "<string>",
"speed": 1.25,
"stability": 0.5,
"similarity": 0.5,
"turnEagerness": "patient",
"reasoningEffort": "none",
"serviceTier": "standard",
"turnDetection": "silence"
},
"startingWorkflowNodeId": "<string>",
"dynamicVariables": [
{
"name": "<string>",
"value": "<string>"
}
],
"environments": [
{
"name": "<string>",
"variables": {},
"connections": [
{
"toolId": "<string>",
"resourceId": "<string>"
}
]
}
],
"expectedWorkflowTransitions": [
{
"toNodeId": "<string>",
"agentId": "<string>",
"fromNodeId": "<string>"
}
],
"forbiddenWorkflowTransitions": [
{
"toNodeId": "<string>",
"agentId": "<string>",
"fromNodeId": "<string>"
}
],
"guardrailCheck": "triggered",
"ignoreToolCalls": true,
"sourceConversation": {
"conversationId": "<string>",
"messageId": "<string>",
"source": "action-preview",
"originalReply": [
{
"kind": "message",
"content": "<string>"
}
]
},
"testType": "simulation",
"caller": {
"voice": "Kore",
"talkativeness": "normal",
"interruptions": "sometimes",
"backchannels": true,
"line": "phone",
"maxMinutes": 10,
"hold": {
"seconds": 62,
"returnLine": "<string>"
},
"direction": "inbound"
},
"voiceChecks": {
"maxResponseGapP90Seconds": 15.25,
"maxSilenceSeconds": 66,
"ignoreSilenceDuringTools": true,
"maxTalkOvers": 50
},
"messages": [
{
"role": "user",
"content": "<string>",
"tool": {
"name": "<string>",
"input": "<string>",
"output": "<string>",
"isError": false,
"actionId": "<string>"
}
}
],
"additionalCriteria": [
"<string>"
],
"successExamples": [
"<string>"
],
"failureExamples": [
"<string>"
],
"expectedActionArguments": [
{
"actionId": "<string>",
"arguments": "{}",
"validation": "exact",
"parameters": [
{
"name": "<string>",
"validation": "anything",
"value": "<string>"
}
]
}
],
"simulatorModel": "<string>",
"judgeModel": "<string>",
"matchAnyAction": true,
"forbiddenActions": [
"<string>"
],
"mockStrategy": "all",
"mockFallback": "error",
"mockedActions": [
"<string>"
]
},
"actions": [
{
"id": "<string>",
"name": "<string>",
"readOnly": true,
"sampleResponse": "<string>",
"description": "<string>",
"kind": "custom",
"parameters": [
{
"name": "<string>",
"required": true,
"description": "<string>",
"type": "<string>"
}
],
"resourceId": "<string>",
"savedMocks": 1,
"responseMocks": [
{}
],
"toolName": "<string>",
"toolType": "client"
}
],
"conversations": [
{
"id": "<string>",
"ordinal": 2,
"status": "QUEUED",
"turns": 1,
"elapsedMs": 1,
"messages": [
{
"id": "<string>",
"role": "user",
"content": "<string>",
"actions": [
{
"id": "<string>",
"actionId": "<string>",
"name": "<string>",
"input": "<string>",
"output": "<string>",
"mocked": true,
"isError": true
}
],
"details": {
"inputTokens": 1,
"latencyMs": 1,
"model": "<string>",
"outputTokens": 1,
"guardrails": {
"fired": [
"<string>"
],
"unavailable": true
},
"workflowNodeId": "<string>"
},
"workflowTransitions": [
{
"fromNodeId": "<string>",
"toNodeId": "<string>"
}
]
}
],
"calledActions": [
"<string>"
],
"missingActions": [
"<string>"
],
"unexpectedActions": [
"<string>"
],
"reason": "<string>",
"error": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"voice": {
"callId": "<string>",
"endedBy": "caller_goodbye",
"closedByRunner": true,
"recordedMs": 123,
"timing": {
"gapCount": 1,
"gapP50Ms": 123,
"gapP90Ms": 123,
"deadAirCount": 1,
"longestDeadAirMs": 1,
"talkOvers": 1,
"durationMs": 1
},
"checks": [
{
"check": "response_gap_p90",
"limit": 123,
"actual": 123,
"passed": true
}
],
"findings": [
{
"kind": "tool_error",
"atMs": 1,
"actionId": "<string>",
"name": "<string>"
}
],
"responseGapsMs": [
1
],
"call": {
"sttProvider": "<string>",
"llmModel": "<string>",
"ttsProvider": "<string>",
"models": [
{
"model": "<string>",
"stage": "llm",
"provider": "<string>",
"inputTokens": 1,
"cachedInputTokens": 1,
"outputTokens": 1,
"sessionMs": 1
}
],
"durationSeconds": 123,
"costCents": {
"stt": 123,
"llm": 123,
"tts": 123,
"realtime": 123,
"carrier": 123
},
"talkOvers": {
"agentCutIn": 123,
"callerOverlap": 123
},
"turns": [
{
"turnIndex": 1,
"e2eMs": 123,
"eouMs": 123,
"sttMs": 123,
"llmTtftMs": 123,
"ttsTtfbMs": 123,
"llmRounds": 123,
"toolMs": 123,
"stepMoveMs": 123,
"inputTokens": 123,
"cacheReadTokens": 123,
"outputTokens": 123
}
]
}
},
"issues": [
{
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"note": "<string>",
"reporter": {
"id": "<string>",
"name": "<string>"
},
"runId": "<string>",
"status": "PENDING",
"title": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"messageIndex": 1
}
],
"review": {
"originalStatus": "FAILED",
"reviewedAt": "2023-11-07T05:31:56Z",
"reviewer": {
"id": "<string>",
"name": "<string>"
},
"group": {
"id": "<string>",
"reason": "<string>",
"title": "<string>"
}
}
}
],
"testId": "<string>",
"agentId": "<string>",
"execution": {
"capturedAt": "2023-11-07T05:31:56Z",
"versionId": "<string>"
},
"resultGroups": [
{
"id": "<string>",
"title": "<string>",
"reason": "<string>",
"status": "PASSED",
"runIds": [
"<string>"
]
}
]
}
],
"pagination": {
"total": 1,
"hasMore": true,
"cursor": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Authorizations
workspaceApiKeyworkspaceApiKeyHeader
Query Parameters
⌘I
List agent test runs
curl --request GET \
--url https://app.cntillion.com/api/v2/agents/{agentId}/test-runs \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.cntillion.com/api/v2/agents/{agentId}/test-runs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.cntillion.com/api/v2/agents/{agentId}/test-runs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.cntillion.com/api/v2/agents/{agentId}/test-runs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.cntillion.com/api/v2/agents/{agentId}/test-runs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.cntillion.com/api/v2/agents/{agentId}/test-runs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.cntillion.com/api/v2/agents/{agentId}/test-runs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"groupingStatus": "pending",
"suite": {
"id": "<string>",
"repeats": 2,
"size": 2
},
"configuration": {
"name": "<string>",
"simulatedUser": "",
"successCriterion": "",
"maxTurns": 25,
"expectedActions": [
"<string>"
],
"actionResponses": [
{
"actionId": "<string>",
"mode": "mock",
"response": "<string>",
"isError": true,
"when": "<string>",
"conditions": [
{
"name": "<string>",
"validation": "anything",
"value": "<string>"
}
]
}
],
"channel": "action-preview",
"environment": "<string>",
"target": {
"type": "draft",
"id": "<string>"
},
"agentOverrides": {
"instructions": "<string>",
"guardrails": "<string>",
"greeting": "<string>",
"model": "<string>",
"temperature": 0.5,
"defaultLanguage": "<string>"
},
"voiceOverrides": {
"pipelineMode": "duplex",
"realtimeModel": "openai/gpt-live-1",
"duplexVoice": "<string>",
"model": "<string>",
"temperature": 0.5,
"voiceProvider": "centillion",
"voiceId": "<string>",
"voiceName": "<string>",
"voiceLanguage": "<string>",
"speed": 1.25,
"stability": 0.5,
"similarity": 0.5,
"turnEagerness": "patient",
"reasoningEffort": "none",
"serviceTier": "standard",
"turnDetection": "silence"
},
"startingWorkflowNodeId": "<string>",
"dynamicVariables": [
{
"name": "<string>",
"value": "<string>"
}
],
"environments": [
{
"name": "<string>",
"variables": {},
"connections": [
{
"toolId": "<string>",
"resourceId": "<string>"
}
]
}
],
"expectedWorkflowTransitions": [
{
"toNodeId": "<string>",
"agentId": "<string>",
"fromNodeId": "<string>"
}
],
"forbiddenWorkflowTransitions": [
{
"toNodeId": "<string>",
"agentId": "<string>",
"fromNodeId": "<string>"
}
],
"guardrailCheck": "triggered",
"ignoreToolCalls": true,
"sourceConversation": {
"conversationId": "<string>",
"messageId": "<string>",
"source": "action-preview",
"originalReply": [
{
"kind": "message",
"content": "<string>"
}
]
},
"testType": "simulation",
"caller": {
"voice": "Kore",
"talkativeness": "normal",
"interruptions": "sometimes",
"backchannels": true,
"line": "phone",
"maxMinutes": 10,
"hold": {
"seconds": 62,
"returnLine": "<string>"
},
"direction": "inbound"
},
"voiceChecks": {
"maxResponseGapP90Seconds": 15.25,
"maxSilenceSeconds": 66,
"ignoreSilenceDuringTools": true,
"maxTalkOvers": 50
},
"messages": [
{
"role": "user",
"content": "<string>",
"tool": {
"name": "<string>",
"input": "<string>",
"output": "<string>",
"isError": false,
"actionId": "<string>"
}
}
],
"additionalCriteria": [
"<string>"
],
"successExamples": [
"<string>"
],
"failureExamples": [
"<string>"
],
"expectedActionArguments": [
{
"actionId": "<string>",
"arguments": "{}",
"validation": "exact",
"parameters": [
{
"name": "<string>",
"validation": "anything",
"value": "<string>"
}
]
}
],
"simulatorModel": "<string>",
"judgeModel": "<string>",
"matchAnyAction": true,
"forbiddenActions": [
"<string>"
],
"mockStrategy": "all",
"mockFallback": "error",
"mockedActions": [
"<string>"
]
},
"actions": [
{
"id": "<string>",
"name": "<string>",
"readOnly": true,
"sampleResponse": "<string>",
"description": "<string>",
"kind": "custom",
"parameters": [
{
"name": "<string>",
"required": true,
"description": "<string>",
"type": "<string>"
}
],
"resourceId": "<string>",
"savedMocks": 1,
"responseMocks": [
{}
],
"toolName": "<string>",
"toolType": "client"
}
],
"conversations": [
{
"id": "<string>",
"ordinal": 2,
"status": "QUEUED",
"turns": 1,
"elapsedMs": 1,
"messages": [
{
"id": "<string>",
"role": "user",
"content": "<string>",
"actions": [
{
"id": "<string>",
"actionId": "<string>",
"name": "<string>",
"input": "<string>",
"output": "<string>",
"mocked": true,
"isError": true
}
],
"details": {
"inputTokens": 1,
"latencyMs": 1,
"model": "<string>",
"outputTokens": 1,
"guardrails": {
"fired": [
"<string>"
],
"unavailable": true
},
"workflowNodeId": "<string>"
},
"workflowTransitions": [
{
"fromNodeId": "<string>",
"toNodeId": "<string>"
}
]
}
],
"calledActions": [
"<string>"
],
"missingActions": [
"<string>"
],
"unexpectedActions": [
"<string>"
],
"reason": "<string>",
"error": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"voice": {
"callId": "<string>",
"endedBy": "caller_goodbye",
"closedByRunner": true,
"recordedMs": 123,
"timing": {
"gapCount": 1,
"gapP50Ms": 123,
"gapP90Ms": 123,
"deadAirCount": 1,
"longestDeadAirMs": 1,
"talkOvers": 1,
"durationMs": 1
},
"checks": [
{
"check": "response_gap_p90",
"limit": 123,
"actual": 123,
"passed": true
}
],
"findings": [
{
"kind": "tool_error",
"atMs": 1,
"actionId": "<string>",
"name": "<string>"
}
],
"responseGapsMs": [
1
],
"call": {
"sttProvider": "<string>",
"llmModel": "<string>",
"ttsProvider": "<string>",
"models": [
{
"model": "<string>",
"stage": "llm",
"provider": "<string>",
"inputTokens": 1,
"cachedInputTokens": 1,
"outputTokens": 1,
"sessionMs": 1
}
],
"durationSeconds": 123,
"costCents": {
"stt": 123,
"llm": 123,
"tts": 123,
"realtime": 123,
"carrier": 123
},
"talkOvers": {
"agentCutIn": 123,
"callerOverlap": 123
},
"turns": [
{
"turnIndex": 1,
"e2eMs": 123,
"eouMs": 123,
"sttMs": 123,
"llmTtftMs": 123,
"ttsTtfbMs": 123,
"llmRounds": 123,
"toolMs": 123,
"stepMoveMs": 123,
"inputTokens": 123,
"cacheReadTokens": 123,
"outputTokens": 123
}
]
}
},
"issues": [
{
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"note": "<string>",
"reporter": {
"id": "<string>",
"name": "<string>"
},
"runId": "<string>",
"status": "PENDING",
"title": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"messageIndex": 1
}
],
"review": {
"originalStatus": "FAILED",
"reviewedAt": "2023-11-07T05:31:56Z",
"reviewer": {
"id": "<string>",
"name": "<string>"
},
"group": {
"id": "<string>",
"reason": "<string>",
"title": "<string>"
}
}
}
],
"testId": "<string>",
"agentId": "<string>",
"execution": {
"capturedAt": "2023-11-07T05:31:56Z",
"versionId": "<string>"
},
"resultGroups": [
{
"id": "<string>",
"title": "<string>",
"reason": "<string>",
"status": "PASSED",
"runIds": [
"<string>"
]
}
]
}
],
"pagination": {
"total": 1,
"hasMore": true,
"cursor": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}