Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get evaluation test cases for a given agent
cURL
curl --request GET \ --url https://{api_endpoint}/v1/orchestrate/agent/{agent_id}/evaluations/{evaluation_id}/test_cases \ --header 'Authorization: Bearer <token>'
import requests url = "https://{api_endpoint}/v1/orchestrate/agent/{agent_id}/evaluations/{evaluation_id}/test_cases" headers = {"Authorization": "Bearer <token>"} response = requests.get(url, headers=headers) print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://{api_endpoint}/v1/orchestrate/agent/{agent_id}/evaluations/{evaluation_id}/test_cases', 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://{api_endpoint}/v1/orchestrate/agent/{agent_id}/evaluations/{evaluation_id}/test_cases", 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://{api_endpoint}/v1/orchestrate/agent/{agent_id}/evaluations/{evaluation_id}/test_cases" 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://{api_endpoint}/v1/orchestrate/agent/{agent_id}/evaluations/{evaluation_id}/test_cases") .header("Authorization", "Bearer <token>") .asString();
require 'uri' require 'net/http' url = URI("https://{api_endpoint}/v1/orchestrate/agent/{agent_id}/evaluations/{evaluation_id}/test_cases") 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
{ "total": 123, "page": 123, "page_size": 123, "test_cases": [ { "prompt": "<string>", "status": "IN_PROGRESS", "created_date": "2023-11-07T05:31:56Z", "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "executed_date": "2023-11-07T05:31:56Z" } ] }
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Test case status
IN_PROGRESS
PASSED
FAILED
Limit the number of results returned
x >= 1
Skip the first N results
x >= 0
Sort key
created_date
executed_date
prompt
Sort order
asc
desc
Successful Response
Total number of test cases
Current page
Number of results per page
List of test cases in this page
Show child attributes