trajectories
get/api/v1/trajectories/{trajectory_id}

Request

  • Base URL
    https://api.trajectory.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.trajectory.ai/api/v1/trajectories/{trajectory_id}
  • Auth
    none declared

Path parameters

trajectory_idstring required

Query parameters

include_stepsboolean

Include every step. A trajectory over 30 MiB fails with trajectory_too_large; page its steps with listTrajectorySteps.

include_reward_componentsboolean

Include the reward components logged with log_reward.

Response

Successful Response

trajectory_idstring required

Trajectory ID, returned as tid by the create endpoint.

organization_idstring required
dataset_idstring nullable
dataset_namestring nullable
dataset_sourcestring nullable
dataset_gcs_prefixstring nullable
trace_idstring nullable
model_idstring nullable
model_association_sourcestring nullable
model_association_metadataobject nullable
sourcestring required
statusstring nullable
termination_reasonstring nullable

Recorded reason the trajectory ended, independent of rollout state; null when not recorded.

rewardnumber nullable
num_stepsinteger nullable
created_atstring required
training_run_idstring nullable
xidstring nullable
task_idstring nullable
policy_stepinteger nullable

Sampled policy step, not optimizer step.

gcs_blob_uristring nullable
errorstring nullable

Changes

    • info

      added the optional property to the response with the status

    • breaking

      for the query request parameter include_reward_components, default value false was added

    • breaking

      for the query request parameter include_steps, default value false was added

    • breaking

      query request parameter include_reward_components list-of-types was narrowed by removing types null

    • breaking

      query request parameter include_steps list-of-types was narrowed by removing types null

    • breaking

      for the query request parameter include_reward_components, the type changed from no type to boolean

    • breaking

      for the query request parameter include_steps, the type changed from no type to boolean