Llm
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
POST | |
GET | |
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
POST | |
GET | |
PATCH | |
DELETE |
List all llm prompts
Required API key scopes
llm_prompt:readPath parameters
- project_idstring
Query parameters
- limitinteger
- offsetinteger
- searchstring
Response
Example request
GET /api /environments /:project_id /llm_promptsExample response
Status 200
RESPONSE
Create llm prompts
Required API key scopes
llm_prompt:writePath parameters
- project_idstring
Request parameters
- namestring
- prompt
Response
Example request
POST /api /environments /:project_id /llm_promptsExample response
Status 201
RESPONSE
Retrieve llm prompts name
Required API key scopes
llm_prompt:readPath parameters
- project_idstring
- prompt_namestring
Query parameters
- versioninteger
Response
Example request
GET /api /environments /:project_id /llm_prompts /name /:prompt_nameExample response
Status 200
RESPONSE
Update llm prompts name
Required API key scopes
llm_prompt:writePath parameters
- project_idstring
- prompt_namestring
Request parameters
- prompt
- base_versioninteger
Response
Example request
PATCH /api /environments /:project_id /llm_prompts /name /:prompt_nameExample response
Status 200
RESPONSE
Create llm prompts name archive
Required API key scopes
llm_prompt:writePath parameters
- project_idstring
- prompt_namestring
Request parameters
- namestring
- prompt
Response
Example request
POST /api /environments /:project_id /llm_prompts /name /:prompt_name /archiveExample response
Status 200
RESPONSE
Retrieve llm prompts resolve name
Required API key scopes
llm_prompt:readPath parameters
- project_idstring
- prompt_namestring
Query parameters
- before_versioninteger
- limitintegerDefault:
50 - offsetinteger
- versioninteger
- version_idstring
Response
Example request
GET /api /environments /:project_id /llm_prompts /resolve /name /:prompt_nameExample response
Status 200
RESPONSE
List all dataset items
Required API key scopes
dataset:readPath parameters
- project_idstring
Query parameters
- datasetstring
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /dataset_itemsExample response
Status 200
RESPONSE
Create dataset items
Required API key scopes
dataset:writePath parameters
- project_idstring
Request parameters
- datasetstring
- input
- output
- metadata
- ref_trace_idstring
- ref_timestampstring
- ref_source_idstring
- deletedboolean
Response
Example request
POST /api /projects /:project_id /dataset_itemsExample response
Status 201
RESPONSE
Retrieve dataset items
Required API key scopes
dataset:readPath parameters
- idstring
- project_idstring
Response
Example request
GET /api /projects /:project_id /dataset_items /:idExample response
Status 200
RESPONSE
Update dataset items
Required API key scopes
dataset:writePath parameters
- idstring
- project_idstring
Request parameters
- datasetstring
- input
- output
- metadata
- ref_trace_idstring
- ref_timestampstring
- ref_source_idstring
- deletedboolean
Response
Example request
PATCH /api /projects /:project_id /dataset_items /:idExample response
Status 200
RESPONSE
Delete 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
- project_idstring
Example request
DELETE /api /projects /:project_id /dataset_items /:idExample response
Status 405 No response body
List all datasets
Required API key scopes
dataset:readPath parameters
- project_idstring
Query parameters
- id__inarray
- limitinteger
- offsetinteger
- order_byarray
- searchstring
Response
Example request
GET /api /projects /:project_id /datasetsExample response
Status 200
RESPONSE
Create datasets
Required API key scopes
dataset:writePath parameters
- project_idstring
Request parameters
- namestring
- descriptionstring
- metadata
- deletedboolean
Response
Example request
POST /api /projects /:project_id /datasetsExample response
Status 201
RESPONSE
Retrieve datasets
Required API key scopes
dataset:readPath parameters
- idstring
- project_idstring
Response
Example request
GET /api /projects /:project_id /datasets /:idExample response
Status 200
RESPONSE
Update datasets
Required API key scopes
dataset:writePath parameters
- idstring
- project_idstring
Request parameters
- namestring
- descriptionstring
- metadata
- deletedboolean
Response
Example request
PATCH /api /projects /:project_id /datasets /:idExample response
Status 200
RESPONSE
Delete 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
- project_idstring
Example request
DELETE /api /projects /:project_id /datasets /:id