Agent testing
Get a workspace test
GET
/
api
/
v2
/
tests
/
{testId}
Get a workspace test
curl --request GET \
--url https://app.cntillion.com/api/v2/tests/{testId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.cntillion.com/api/v2/tests/{testId}"
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/tests/{testId}', 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/tests/{testId}",
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/tests/{testId}"
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/tests/{testId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.cntillion.com/api/v2/tests/{testId}")
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>",
"workspaceId": "<string>",
"name": "<string>",
"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>"
]
},
"folderId": "<string>",
"revision": 1,
"createdBy": "<string>",
"createdByName": "<string>",
"createdByMe": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"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
⌘I
Get a workspace test
curl --request GET \
--url https://app.cntillion.com/api/v2/tests/{testId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.cntillion.com/api/v2/tests/{testId}"
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/tests/{testId}', 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/tests/{testId}",
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/tests/{testId}"
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/tests/{testId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.cntillion.com/api/v2/tests/{testId}")
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>",
"workspaceId": "<string>",
"name": "<string>",
"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>"
]
},
"folderId": "<string>",
"revision": 1,
"createdBy": "<string>",
"createdByName": "<string>",
"createdByMe": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"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>"
}
}