Log evaluation results
Log evaluation results from SDK
POST
/v1/projects/{projectId}/eval-resultsAuthorization
AuthorizationPersonal API key · headerrequiredYour personal API key from Settings > Personal API Keys, sent as Bearer <key>.
X-Organization-IdOrganization ID · headerrequiredThe organization to act in. Copy it with Copy organization ID in the organization menu or the settings sidebar.
Path parameters
projectIdstringrequiredRequest body
requiredapplication/jsonresultsScoringResult[]requiredShow propertiesHide properties
Array of
ScoringResultAny of:
ExampleScoringResult
scorers_dataobject[]requiredShow propertiesHide properties
Array of
objectscorer_namestringrequirednamestring | nullShow propertiesHide properties
Any of:
string
stringnull
nulldata_objectExamplerequiredtrace_idstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullrun_durationnumber | nullShow propertiesHide properties
Any of:
number
numbernull
nullevaluation_costnumber | nullShow propertiesHide properties
Any of:
number
numbernull
nullTraceScoringResult
scorers_dataobject[]requiredShow propertiesHide properties
Array of
objectscorer_namestringrequirednamestringdata_objectTraceSpanrequiredShow propertiesHide properties
organization_idstringrequiredproject_idstringrequiredtimestampstringrequiredtrace_idstringrequiredspan_idstringrequiredparent_span_idstring | nullrequiredShow propertiesHide properties
Any of:
string
stringnull
nulltrace_statestring | nullrequiredShow propertiesHide properties
Any of:
string
stringnull
nullspan_namestring | nullrequiredShow propertiesHide properties
Any of:
string
stringnull
nullspan_kindstring | nullrequiredShow propertiesHide properties
Any of:
string
stringnull
nullservice_namestring | nullrequiredShow propertiesHide properties
Any of:
string
stringnull
nullresource_attributesobjectrequiredspan_attributesobjectrequireddurationstringrequiredstatus_codenumberrequiredstatus_messagestring | nullrequiredShow propertiesHide properties
Any of:
string
stringnull
nulleventsobject[]requiredShow propertiesHide properties
Array of
objectTimestampstringrequiredNamestringrequiredAttributesobjectrequiredlinksstring | nullrequiredShow propertiesHide properties
Any of:
string
stringnull
nulltrace_idstringrun_durationnumberevaluation_costnumberrunExampleEvaluationRunrequiredShow propertiesHide properties
idstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullproject_idstringrequiredeval_namestringrequiredmodelstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullcreated_atstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulluser_idstringscorersany[] | nullShow propertiesHide properties
Any of:
any[]
Array of
anyanynull
nullcustom_scorersBaseScorer[]requireddefault: []
Show propertiesHide properties
Array of
BaseScorerscore_typestringrequirednamestringrequiredclass_namestring | nullShow propertiesHide properties
Any of:
string
stringnull
nullscorenumber | nullShow propertiesHide properties
Any of:
number
numbernull
nullminimum_score_rangenumberdefault: 0
maximum_score_rangenumberdefault: 1
score_breakdownobject | nullShow propertiesHide properties
Any of:
object
objectnull
nullreasonstring | objectShow propertiesHide properties
Any of:
string
stringobject
objectsuccessboolean | nullShow propertiesHide properties
Any of:
boolean
booleannull
nullmodelstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullerrorstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulladditional_metadataobject | nullShow propertiesHide properties
Any of:
object
objectnull
nulluserstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullserver_hostedboolean | nullShow propertiesHide properties
Any of:
boolean
booleannull
nullusing_native_modelboolean | nullShow propertiesHide properties
Any of:
boolean
booleannull
nullrequired_paramsstring[] | nullShow propertiesHide properties
Any of:
string[]
Array of
stringstringnull
nullstrict_modeboolean | nullShow propertiesHide properties
Any of:
boolean
booleannull
nulljudgment_scorersScorerConfig[]requireddefault: []
Show propertiesHide properties
Array of
ScorerConfigscore_typestring | nullShow propertiesHide properties
Any of:
string
stringnull
nullnamestringrequiredmodelstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullrequired_paramsstring[] | nullShow propertiesHide properties
Any of:
string[]
Array of
stringstringnull
nullkwargsobject | nullShow propertiesHide properties
Any of:
object
objectnull
nullresult_typestringAllowed:
numericbinarycategoricalexamplesExample[]requiredmin items 1
Show propertiesHide properties
Array of
Exampleexample_idstringrequiredcreated_atstringrequirednamestring | nullShow propertiesHide properties
Any of:
string
stringnull
nullconversation_idstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulltrace_idstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullspan_idstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulloffline_trace_idstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullsession_idstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullsession_trace_idsstring[]agent_offline_trace_idstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulltrace_span_idstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulltrace_idstring | nullShow propertiesHide properties
Any of:
string
stringnull
nullResponses
200
Response for status 200
ui_results_urlstringrequired422
Response for status 422
errorstringrequiredmessagestringcodestringdetailsstring[]