Create evaluation
curl --request POST \
--url https://www.tryunleashx.com/api/v1/global/evaluation/create-update-config/ \
--header 'Content-Type: application/json' \
--header 'token: <token>' \
--data '
{
"eval_name": "<string>",
"call_source": "<string>",
"agent_id": "<string>",
"app_id": "<string>",
"source_config": {},
"system_prompt": "<string>",
"llm_provider": "<string>",
"llm_model": "<string>",
"fallback_provider": "<string>",
"fallback_model": "<string>",
"transcription_provider": "<string>",
"transcription_model": "<string>",
"temperature": 123,
"skip_shorter_than": 123,
"run_on_all_past_and_future_calls": true,
"ground_truth_sources": [
"<string>"
],
"cron_expression": "<string>",
"status": 123
}
'import requests
url = "https://www.tryunleashx.com/api/v1/global/evaluation/create-update-config/"
payload = {
"eval_name": "<string>",
"call_source": "<string>",
"agent_id": "<string>",
"app_id": "<string>",
"source_config": {},
"system_prompt": "<string>",
"llm_provider": "<string>",
"llm_model": "<string>",
"fallback_provider": "<string>",
"fallback_model": "<string>",
"transcription_provider": "<string>",
"transcription_model": "<string>",
"temperature": 123,
"skip_shorter_than": 123,
"run_on_all_past_and_future_calls": True,
"ground_truth_sources": ["<string>"],
"cron_expression": "<string>",
"status": 123
}
headers = {
"token": "<token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {token: '<token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
eval_name: '<string>',
call_source: '<string>',
agent_id: '<string>',
app_id: '<string>',
source_config: {},
system_prompt: '<string>',
llm_provider: '<string>',
llm_model: '<string>',
fallback_provider: '<string>',
fallback_model: '<string>',
transcription_provider: '<string>',
transcription_model: '<string>',
temperature: 123,
skip_shorter_than: 123,
run_on_all_past_and_future_calls: true,
ground_truth_sources: ['<string>'],
cron_expression: '<string>',
status: 123
})
};
fetch('https://www.tryunleashx.com/api/v1/global/evaluation/create-update-config/', 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://www.tryunleashx.com/api/v1/global/evaluation/create-update-config/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'eval_name' => '<string>',
'call_source' => '<string>',
'agent_id' => '<string>',
'app_id' => '<string>',
'source_config' => [
],
'system_prompt' => '<string>',
'llm_provider' => '<string>',
'llm_model' => '<string>',
'fallback_provider' => '<string>',
'fallback_model' => '<string>',
'transcription_provider' => '<string>',
'transcription_model' => '<string>',
'temperature' => 123,
'skip_shorter_than' => 123,
'run_on_all_past_and_future_calls' => true,
'ground_truth_sources' => [
'<string>'
],
'cron_expression' => '<string>',
'status' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"token: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.tryunleashx.com/api/v1/global/evaluation/create-update-config/"
payload := strings.NewReader("{\n \"eval_name\": \"<string>\",\n \"call_source\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"app_id\": \"<string>\",\n \"source_config\": {},\n \"system_prompt\": \"<string>\",\n \"llm_provider\": \"<string>\",\n \"llm_model\": \"<string>\",\n \"fallback_provider\": \"<string>\",\n \"fallback_model\": \"<string>\",\n \"transcription_provider\": \"<string>\",\n \"transcription_model\": \"<string>\",\n \"temperature\": 123,\n \"skip_shorter_than\": 123,\n \"run_on_all_past_and_future_calls\": true,\n \"ground_truth_sources\": [\n \"<string>\"\n ],\n \"cron_expression\": \"<string>\",\n \"status\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("token", "<token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://www.tryunleashx.com/api/v1/global/evaluation/create-update-config/")
.header("token", "<token>")
.header("Content-Type", "application/json")
.body("{\n \"eval_name\": \"<string>\",\n \"call_source\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"app_id\": \"<string>\",\n \"source_config\": {},\n \"system_prompt\": \"<string>\",\n \"llm_provider\": \"<string>\",\n \"llm_model\": \"<string>\",\n \"fallback_provider\": \"<string>\",\n \"fallback_model\": \"<string>\",\n \"transcription_provider\": \"<string>\",\n \"transcription_model\": \"<string>\",\n \"temperature\": 123,\n \"skip_shorter_than\": 123,\n \"run_on_all_past_and_future_calls\": true,\n \"ground_truth_sources\": [\n \"<string>\"\n ],\n \"cron_expression\": \"<string>\",\n \"status\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.tryunleashx.com/api/v1/global/evaluation/create-update-config/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["token"] = '<token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"eval_name\": \"<string>\",\n \"call_source\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"app_id\": \"<string>\",\n \"source_config\": {},\n \"system_prompt\": \"<string>\",\n \"llm_provider\": \"<string>\",\n \"llm_model\": \"<string>\",\n \"fallback_provider\": \"<string>\",\n \"fallback_model\": \"<string>\",\n \"transcription_provider\": \"<string>\",\n \"transcription_model\": \"<string>\",\n \"temperature\": 123,\n \"skip_shorter_than\": 123,\n \"run_on_all_past_and_future_calls\": true,\n \"ground_truth_sources\": [\n \"<string>\"\n ],\n \"cron_expression\": \"<string>\",\n \"status\": 123\n}"
response = http.request(request)
puts response.read_body{}Evaluation
Create Evaluation
Create a new evaluation configuration.
POST
/
evaluation
/
create-update-config
/
Create evaluation
curl --request POST \
--url https://www.tryunleashx.com/api/v1/global/evaluation/create-update-config/ \
--header 'Content-Type: application/json' \
--header 'token: <token>' \
--data '
{
"eval_name": "<string>",
"call_source": "<string>",
"agent_id": "<string>",
"app_id": "<string>",
"source_config": {},
"system_prompt": "<string>",
"llm_provider": "<string>",
"llm_model": "<string>",
"fallback_provider": "<string>",
"fallback_model": "<string>",
"transcription_provider": "<string>",
"transcription_model": "<string>",
"temperature": 123,
"skip_shorter_than": 123,
"run_on_all_past_and_future_calls": true,
"ground_truth_sources": [
"<string>"
],
"cron_expression": "<string>",
"status": 123
}
'import requests
url = "https://www.tryunleashx.com/api/v1/global/evaluation/create-update-config/"
payload = {
"eval_name": "<string>",
"call_source": "<string>",
"agent_id": "<string>",
"app_id": "<string>",
"source_config": {},
"system_prompt": "<string>",
"llm_provider": "<string>",
"llm_model": "<string>",
"fallback_provider": "<string>",
"fallback_model": "<string>",
"transcription_provider": "<string>",
"transcription_model": "<string>",
"temperature": 123,
"skip_shorter_than": 123,
"run_on_all_past_and_future_calls": True,
"ground_truth_sources": ["<string>"],
"cron_expression": "<string>",
"status": 123
}
headers = {
"token": "<token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {token: '<token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
eval_name: '<string>',
call_source: '<string>',
agent_id: '<string>',
app_id: '<string>',
source_config: {},
system_prompt: '<string>',
llm_provider: '<string>',
llm_model: '<string>',
fallback_provider: '<string>',
fallback_model: '<string>',
transcription_provider: '<string>',
transcription_model: '<string>',
temperature: 123,
skip_shorter_than: 123,
run_on_all_past_and_future_calls: true,
ground_truth_sources: ['<string>'],
cron_expression: '<string>',
status: 123
})
};
fetch('https://www.tryunleashx.com/api/v1/global/evaluation/create-update-config/', 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://www.tryunleashx.com/api/v1/global/evaluation/create-update-config/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'eval_name' => '<string>',
'call_source' => '<string>',
'agent_id' => '<string>',
'app_id' => '<string>',
'source_config' => [
],
'system_prompt' => '<string>',
'llm_provider' => '<string>',
'llm_model' => '<string>',
'fallback_provider' => '<string>',
'fallback_model' => '<string>',
'transcription_provider' => '<string>',
'transcription_model' => '<string>',
'temperature' => 123,
'skip_shorter_than' => 123,
'run_on_all_past_and_future_calls' => true,
'ground_truth_sources' => [
'<string>'
],
'cron_expression' => '<string>',
'status' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"token: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.tryunleashx.com/api/v1/global/evaluation/create-update-config/"
payload := strings.NewReader("{\n \"eval_name\": \"<string>\",\n \"call_source\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"app_id\": \"<string>\",\n \"source_config\": {},\n \"system_prompt\": \"<string>\",\n \"llm_provider\": \"<string>\",\n \"llm_model\": \"<string>\",\n \"fallback_provider\": \"<string>\",\n \"fallback_model\": \"<string>\",\n \"transcription_provider\": \"<string>\",\n \"transcription_model\": \"<string>\",\n \"temperature\": 123,\n \"skip_shorter_than\": 123,\n \"run_on_all_past_and_future_calls\": true,\n \"ground_truth_sources\": [\n \"<string>\"\n ],\n \"cron_expression\": \"<string>\",\n \"status\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("token", "<token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://www.tryunleashx.com/api/v1/global/evaluation/create-update-config/")
.header("token", "<token>")
.header("Content-Type", "application/json")
.body("{\n \"eval_name\": \"<string>\",\n \"call_source\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"app_id\": \"<string>\",\n \"source_config\": {},\n \"system_prompt\": \"<string>\",\n \"llm_provider\": \"<string>\",\n \"llm_model\": \"<string>\",\n \"fallback_provider\": \"<string>\",\n \"fallback_model\": \"<string>\",\n \"transcription_provider\": \"<string>\",\n \"transcription_model\": \"<string>\",\n \"temperature\": 123,\n \"skip_shorter_than\": 123,\n \"run_on_all_past_and_future_calls\": true,\n \"ground_truth_sources\": [\n \"<string>\"\n ],\n \"cron_expression\": \"<string>\",\n \"status\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.tryunleashx.com/api/v1/global/evaluation/create-update-config/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["token"] = '<token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"eval_name\": \"<string>\",\n \"call_source\": \"<string>\",\n \"agent_id\": \"<string>\",\n \"app_id\": \"<string>\",\n \"source_config\": {},\n \"system_prompt\": \"<string>\",\n \"llm_provider\": \"<string>\",\n \"llm_model\": \"<string>\",\n \"fallback_provider\": \"<string>\",\n \"fallback_model\": \"<string>\",\n \"transcription_provider\": \"<string>\",\n \"transcription_model\": \"<string>\",\n \"temperature\": 123,\n \"skip_shorter_than\": 123,\n \"run_on_all_past_and_future_calls\": true,\n \"ground_truth_sources\": [\n \"<string>\"\n ],\n \"cron_expression\": \"<string>\",\n \"status\": 123\n}"
response = http.request(request)
puts response.read_body{}Create a new evaluation configuration.
eval_name and call_source are required.
Updating an existing one: see Update Evaluation.
Body
application/json
Response
200 - application/json
Success
The response is of type object.
Was this page helpful?

