GetRLSample
Queries a single reinforcement learning (RL) trajectory and sample-level events for the same sample based on the job ID, prompt UID, and sample index, and returns an event stream sorted by event time and collection time.
Operation description
Queries a single reinforcement learning (RL) trajectory and sample-level events for the same sample based on the job ID, prompt UID, and sample index, and returns an event stream sorted by event time and collection time.
Try it now
Test
RAM authorization
Request syntax
GET /api/v1/jobs/{JobId}/rltrace/sample HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JobId |
string |
Yes |
The job ID. |
dlc5yfk7eyg95lac |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PromptUid |
string |
Yes |
The sample UID. |
3afcfbdf-3956-4ab2-b9cb-f9c204b8fc9c |
| SampleIndex |
string |
Yes |
The trajectory index. |
14 |
| StartTime |
string |
No |
The start time of the query window. |
2026-08-04T00:00:00Z |
| EndTime |
string |
No |
The end time of the query window. |
2026-08-07T00:00:00Z |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The RL trajectory event stream response body. |
||
| JobId |
string |
The job ID. |
dlc5yfk7eyg95lac |
| PromptUid |
string |
The sample UID. |
3afcfbdf-3956-4ab2-b9cb-f9c204b8fc9c |
| SampleIndex |
string |
The trajectory index. |
14 |
| Events |
array |
The event stream sorted in ascending order by time. |
|
| RLSampleEvent |
The RL trajectory event. |
||
| TotalCount |
integer |
The total number of returned events. |
116 |
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Examples
Success response
JSON format
{
"JobId": "dlc5yfk7eyg95lac",
"PromptUid": "3afcfbdf-3956-4ab2-b9cb-f9c204b8fc9c",
"SampleIndex": "14",
"Events": [
{
"Stage": "DATA_PREPROCESS",
"From": "DataLoader",
"To": "Trainer",
"Detail": "uid_generated",
"GlobalStep": "12",
"TimestampMs": 1787293208012
}
],
"TotalCount": 116,
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is not valid. | |
| 500 | InternalServerError | An internal error has occurred. Try again later. | |
| 403 | OperationForbidden | You are not authorized to access the specified job. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.