Create Testrecord

POST
Create a new Testrecord

Path parameters

run_idintegerRequired
The ID of the Run to create the Testrecord in.

Request

This endpoint expects an object.
testset_idintegerOptional
testcase_idintegerOptional
user_querystringOptional
The user query that was executed for the testrecord.
contextstringOptional
The context that was used while generating the testrecord.
responsestringOptional
The response generated by the model.
idealstringOptional
The ideal response.
custom_inputsmap from strings to optional strings or objectsOptional
custom_outputsmap from strings to optional strings or objectsOptional
custom_labelsmap from strings to optional strings or objectsOptional
promptstringOptional
The prompt used to generate the response.
model_paramsmap from strings to optional integers or doubles or stringsOptional
The model parameters used to generate the response.
model_debug_infomap from strings to optional integers or doubles or stringsOptional
Debug information generated by Scorecard during the execution of the testrecord.
error_messagestringOptional
The error message for the testrecord.

Response

This endpoint returns an object
idintegerOptional
created_atdatetimeOptional
The creation date and time of the testrecord.
run_idintegerOptional
The ID of the run the testrecord belongs to.
testset_idintegerOptional
The ID of the testset the testrecord belongs to.
testcase_idintegerOptional
The ID of the testcase the testrecord belongs to.
user_querystringOptional
The user query for the testrecord.
contextstringOptional
The context for the testrecord.
model_responsestringOptional
The actual response of the model for the testrecord.
idealstringOptional
The ideal response for the testrecord.
custom_inputsmap from strings to optional strings or objectsOptional
custom_labelsmap from strings to optional strings or objectsOptional
custom_outputsmap from strings to optional strings or objectsOptional
statusstringOptional
The current status of the testrecord.
promptstringOptional
The prompt used to generate the testrecord.
model_paramsmap from strings to optional integers or doubles or stringsOptional
The model parameters used when generating the testrecord.
model_debug_infomap from strings to optional integers or doubles or stringsOptional
Debug information produced during the testrecord's generation.
error_messagestringOptional
The error message for the testrecord.

Errors