LLM analytics
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST | |
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
POST |
List all environments dataset items
Required API key scopes
dataset:readQuery parameters
- datasetstring
- limitinteger
- offsetinteger
Response
Example request
GET /api /environments /:environment_id /dataset_itemsExample response
Status 200
RESPONSE
Create environments dataset items
Required API key scopes
dataset:writeRequest parameters
- datasetstring
- input
- output
- metadata
- ref_trace_idstringnull
- ref_timestampstringnull
- ref_source_idstringnull
- deletedbooleannull
Response
Example request
POST /api /environments /:environment_id /dataset_itemsExample response
Status 201
RESPONSE
Retrieve environments dataset items
Required API key scopes
dataset:readPath parameters
- idstring
Response
Example request
GET /api /environments /:environment_id /dataset_items /:idExample response
Status 200
RESPONSE
Update environments dataset items
Required API key scopes
dataset:writePath parameters
- idstring
Request parameters
- datasetstring
- input
- output
- metadata
- ref_trace_idstringnull
- ref_timestampstringnull
- ref_source_idstringnull
- deletedbooleannull
Response
Example request
PATCH /api /environments /:environment_id /dataset_items /:idExample response
Status 200
RESPONSE
Delete environments dataset items
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Required API key scopes
dataset:writePath parameters
- idstring
Example request
DELETE /api /environments /:environment_id /dataset_items /:idExample response
Status 405 No response body
List all environments datasets
Required API key scopes
dataset:readQuery parameters
- id__inarray
- limitinteger
- offsetinteger
- order_byarray
- searchstring
Response
Example request
GET /api /environments /:environment_id /datasetsExample response
Status 200
RESPONSE
Create environments datasets
Required API key scopes
dataset:writeRequest parameters
- namestring
- descriptionstringnull
- metadata
- deletedbooleannull
Response
Example request
POST /api /environments /:environment_id /datasetsExample response
Status 201
RESPONSE
Retrieve environments datasets
Required API key scopes
dataset:readPath parameters
- idstring
Response
Example request
GET /api /environments /:environment_id /datasets /:idExample response
Status 200
RESPONSE
Update environments datasets
Required API key scopes
dataset:writePath parameters
- idstring
Request parameters
- namestring
- descriptionstringnull
- metadata
- deletedbooleannull
Response
Example request
PATCH /api /environments /:environment_id /datasets /:idExample response
Status 200
RESPONSE
Delete environments datasets
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Required API key scopes
dataset:writePath parameters
- idstring
Example request
DELETE /api /environments /:environment_id /datasets /:idExample response
Status 405 No response body
Create evaluation runs
Create a new evaluation run.
This endpoint validates the request and enqueues a Temporal workflow to asynchronously execute the evaluation.
Required API key scopes
evaluation:writeRequest parameters
- evaluation_idstring
- target_event_idstring
- timestampstring
- eventstringDefault:
$ai_generation - distinct_idstringnull
Example request
POST /api /environments /:project_id /evaluation_runsExample response
Status 200
List all evaluations
Required API key scopes
evaluation:readQuery parameters
- enabledboolean
- id__inarray
- limitinteger
- offsetinteger
- order_byarray
- searchstring
Response
Example request
GET /api /environments /:project_id /evaluationsExample response
Status 200
RESPONSE
Create evaluations
Required API key scopes
evaluation:writeRequest parameters
- namestring
- descriptionstring
- enabledboolean
- evaluation_type
- evaluation_config
- output_type
- output_configobject
- conditions
- model_configuration
- deletedboolean
Response
Example request
POST /api /environments /:project_id /evaluationsExample response
Status 201
RESPONSE
Retrieve evaluations
Required API key scopes
evaluation:readPath parameters
- idstring
Response
Example request
GET /api /environments /:project_id /evaluations /:idExample response
Status 200
RESPONSE
Update evaluations
Required API key scopes
evaluation:writePath parameters
- idstring
Request parameters
- namestring
- descriptionstring
- enabledboolean
- evaluation_type
- evaluation_config
- output_type
- output_configobject
- conditions
- model_configuration
- deletedboolean
Response
Example request
PATCH /api /environments /:project_id /evaluations /:idExample response
Status 200
RESPONSE
Delete evaluations
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Required API key scopes
evaluation:writePath parameters
- idstring
Example request
DELETE /api /environments /:project_id /evaluations /:idExample response
Status 405 No response body
Create evaluations test hog
Test Hog evaluation code against sample events without saving.
Required API key scopes
evaluation:readRequest parameters
- sourcestring
- sample_countintegerDefault:
5 - allows_nabooleanDefault:
false - conditionsarray
Response
Example request
POST /api /environments /:project_id /evaluations /test_hogExample response
Status 200
RESPONSE