Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Stream experiment items

POST/v1/private/experiments/items/streamStream experiment items

Stream experiment items

Request body

application/json
objectExperimentItemStreamRequest
experiment_namestringrequired

minLength 1

last_retrieved_idstring · uuid
limitinteger · int32

maximum 2000 · minimum 1

project_namestring

pattern (?s)^\s*(\S.*\S|\S)\s*$

truncateboolean

Truncate image included in either input, output or metadata

default true

Example request
{
  "experiment_name": "string",
  "last_retrieved_id": "00000000-0000-0000-0000-000000000000",
  "limit": 0,
  "project_name": "string",
  "truncate": true
}

Responses

200Experiment items stream or error during processapplication/octet-stream
array of string

maxItems 2000

Show array items
anyOf · 2 options
Option 1objectExperimentItem
assertion_resultsarray of object
Show child attributes
Show array items
passedboolean
reasonstring
valuestring
commentsarray of object
Show child attributes
Show array items
created_atstring · date-time
created_bystring
idstring · uuid
last_updated_atstring · date-time
last_updated_bystring
source_queue_idstring · uuid
textstringrequired

minLength 1

created_atstring · date-time
created_bystring
dataset_item_idstring · uuidrequired
descriptionstring
durationnumber · double
execution_policyobject
Show child attributes
pass_thresholdinteger · int32

maximum 100 · minimum 1

runs_per_iteminteger · int32

maximum 100 · minimum 1

experiment_idstring · uuidrequired
feedback_scoresarray of object
Show child attributes
Show array items
category_namestring
created_atstring · date-time
created_bystring
last_updated_atstring · date-time
last_updated_bystring
namestringrequired

minLength 1

reasonstring
sourcestringrequired

one of "ui", "sdk", "online_scoring"

source_queue_idstring · uuid
valuenumberrequired

maximum 1000000000 · minimum -1000000000

value_by_authorobject
idstring · uuid
inputobject
Show child attributes
anyOf · 3 options
Option 1object
Option 2array of object
Option 3string
last_updated_atstring · date-time
last_updated_bystring
outputobjectJsonListString ↑
project_idstring · uuid
project_namestring

pattern (?s)^\s*(\S.*\S|\S)\s*$

statusstring

one of "passed", "failed"

total_estimated_costnumber
trace_idstring · uuidrequired
trace_metadataobjectJsonListString ↑
trace_visibility_modestring

one of "default", "hidden"

usageobject
Option 2objectErrorMessage
codeinteger · int32
detailsstring
messagestring
Example response
[
  {
    "code": 0,
    "details": "string",
    "message": "string"
  }
]
Documentation menu