Log evaluation results
Log evaluation results from SDK
POST
/v1/projects/{projectId}/eval-results/examplesAuthorization
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/jsonresultsOfflineTestsLocalScorerResult[]requiredShow propertiesHide properties
Array of
OfflineTestsLocalScorerResultscorers_dataobject[]requiredShow propertiesHide properties
Array of
objectscorer_namestringrequiredvalueboolean | number | stringrequiredShow propertiesHide properties
Any of:
boolean
booleannumber
numberstring
stringreasonstringrequiredcitationsobject[] | nullShow propertiesHide properties
Any of:
object[]
Array of
objectspan_idstringrequiredspan_attributestringrequirednull
nullerrorstring | nullShow propertiesHide properties
Any of:
string
stringnull
nulldata_objectExamplerequiredShow propertiesHide properties
example_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
nullrunExampleEvaluationRunrequiredShow 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[]