API by router
Evaluations
GET
HTTPBearerheader
AuthorizationBearer <token>X-Api-Key?string|nullSuccessful Response
application/json- response
[index: integer]?curl -X GET 'https://example.com/v1/evaluations'Example Response
[ { "config": {}, "created_at": "2019-08-24T14:15:22Z", "description": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366", "name": "string", "recipe_id": "fa7d15d4-7670-4586-a94b-5079ed028135", "results_summary": {}, "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "updated_at": "2019-08-24T14:15:22Z" }]POST
HTTPBearerheader
AuthorizationBearer <token>X-Api-Key?string|nullapplication/json- body
config?Default
{}description?string|nullinstance_id?|nullname*NameLength
length <= 200recipe_id?|nullSuccessful Response
application/json- response
config*created_at*Created AtFormat
date-timedescription*string|nullid*IdFormat
uuidinstance_id*|nullname*Namerecipe_id*|nullresults_summary*|nullstatus*Statustenant_id*Tenant IdFormat
uuidupdated_at*Updated AtFormat
date-timecurl -X POST 'https://example.com/v1/evaluations' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'Example Response
{ "config": {}, "created_at": "2019-08-24T14:15:22Z", "description": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366", "name": "string", "recipe_id": "fa7d15d4-7670-4586-a94b-5079ed028135", "results_summary": {}, "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "updated_at": "2019-08-24T14:15:22Z"}GET
HTTPBearerheader
AuthorizationBearer <token>evaluation_id*Evaluation IdFormat
uuidX-Api-Key?string|nullSuccessful Response
application/json- response
config*created_at*Created AtFormat
date-timedescription*string|nullid*IdFormat
uuidinstance_id*|nullname*Namerecipe_id*|nullresults_summary*|nullstatus*Statustenant_id*Tenant IdFormat
uuidupdated_at*Updated AtFormat
date-timecurl -X GET 'https://example.com/v1/evaluations/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{ "config": {}, "created_at": "2019-08-24T14:15:22Z", "description": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "instance_id": "06587974-2dbe-4e10-8bf9-38cce0f5a366", "name": "string", "recipe_id": "fa7d15d4-7670-4586-a94b-5079ed028135", "results_summary": {}, "status": "string", "tenant_id": "34f5c98e-f430-457b-a812-92637d0c6fd0", "updated_at": "2019-08-24T14:15:22Z"}DELETE
HTTPBearerheader
AuthorizationBearer <token>evaluation_id*Evaluation IdFormat
uuidX-Api-Key?string|nullSuccessful Response
curl -X DELETE 'https://example.com/v1/evaluations/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
Empty
GET
HTTPBearerheader
AuthorizationBearer <token>evaluation_id*Evaluation IdFormat
uuidX-Api-Key?string|nullSuccessful Response
application/json- response
[index: integer]?curl -X GET 'https://example.com/v1/evaluations/497f6eca-6276-4993-bfeb-53cbbbba6f08/results'Example Response
[ { "agent_response": "string", "created_at": "2019-08-24T14:15:22Z", "evaluation_id": "4108ec8e-6efd-4b9b-bace-0bb4c296c324", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "latency_ms": 0, "score": 0, "score_reason": "string", "status": "string", "test_case_id": "738e7d5d-48c4-4b50-859a-47ff022bef7f", "tokens_used": 0, "tool_calls_made": [ {} ] }]PATCH
HTTPBearerheader
AuthorizationBearer <token>evaluation_id*Evaluation IdFormat
uuidresult_id*Result IdFormat
uuidX-Api-Key?string|nullapplication/json- body
score*ScoreRange
0 <= value <= 100score_reason?string|nullSuccessful Response
application/json- response
agent_response*string|nullcreated_at*Created AtFormat
date-timeevaluation_id*Evaluation IdFormat
uuidid*IdFormat
uuidlatency_ms*integer|nullscore*integer|nullscore_reason*string|nullstatus*Statustest_case_id*Test Case IdFormat
uuidtokens_used*integer|nulltool_calls_made*array<>|nullcurl -X PATCH 'https://example.com/v1/evaluations/497f6eca-6276-4993-bfeb-53cbbbba6f08/results/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{ "score": 0}'Example Response
{ "agent_response": "string", "created_at": "2019-08-24T14:15:22Z", "evaluation_id": "4108ec8e-6efd-4b9b-bace-0bb4c296c324", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "latency_ms": 0, "score": 0, "score_reason": "string", "status": "string", "test_case_id": "738e7d5d-48c4-4b50-859a-47ff022bef7f", "tokens_used": 0, "tool_calls_made": [ {} ]}POST
HTTPBearerheader
AuthorizationBearer <token>evaluation_id*Evaluation IdFormat
uuidX-Api-Key?string|nullSuccessful Response
application/json- response
status*Statustask_id*Task Idcurl -X POST 'https://example.com/v1/evaluations/497f6eca-6276-4993-bfeb-53cbbbba6f08/run'Example Response
{ "status": "string", "task_id": "string"}GET
HTTPBearerheader
AuthorizationBearer <token>evaluation_id*Evaluation IdFormat
uuidX-Api-Key?string|nullSuccessful Response
application/json- response
[index: integer]?curl -X GET 'https://example.com/v1/evaluations/497f6eca-6276-4993-bfeb-53cbbbba6f08/test-cases'Example Response
[ { "created_at": "2019-08-24T14:15:22Z", "evaluation_id": "4108ec8e-6efd-4b9b-bace-0bb4c296c324", "expected_behavior": "string", "expected_tool_calls": [ {} ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "input_message": "string", "sort_order": 0, "tags": [ null ] }]POST
HTTPBearerheader
AuthorizationBearer <token>evaluation_id*Evaluation IdFormat
uuidX-Api-Key?string|nullapplication/json- body
expected_behavior?string|nullexpected_tool_calls?array<>|nullinput_message*Input Messagesort_order?Sort OrderDefault
0tags?array<string>Default
[]Successful Response
application/json- response
created_at*Created AtFormat
date-timeevaluation_id*Evaluation IdFormat
uuidexpected_behavior*string|nullexpected_tool_calls*array<>|nullid*IdFormat
uuidinput_message*Input Messagesort_order*Sort Ordertags*array<unknown>curl -X POST 'https://example.com/v1/evaluations/497f6eca-6276-4993-bfeb-53cbbbba6f08/test-cases' \ -H 'Content-Type: application/json' \ -d '{ "input_message": "string"}'Example Response
{ "created_at": "2019-08-24T14:15:22Z", "evaluation_id": "4108ec8e-6efd-4b9b-bace-0bb4c296c324", "expected_behavior": "string", "expected_tool_calls": [ {} ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "input_message": "string", "sort_order": 0, "tags": [ null ]}DELETE
HTTPBearerheader
AuthorizationBearer <token>evaluation_id*Evaluation IdFormat
uuidcase_id*Case IdFormat
uuidX-Api-Key?string|nullSuccessful Response
curl -X DELETE 'https://example.com/v1/evaluations/497f6eca-6276-4993-bfeb-53cbbbba6f08/test-cases/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
Empty