completeRollout
inline suspend fun SagemakerJobRuntimeClient.completeRollout(crossinline block: CompleteRolloutRequest.Builder.() -> Unit): CompleteRolloutResponse
Marks a rollout as complete, indicating that no further turns will be appended to the trajectory. After calling this operation, the trajectory is sealed and eligible for reward submission via the UpdateReward operation.
Samples
// Marks a rollout as complete so the trajectory is sealed and eligible for reward submission.
val resp = sagemakerJobRuntimeClient.completeRollout {
jobArn = "arn:aws:sagemaker:us-east-1:123456789012:job/AgentRFT/my-training-job"
trajectoryId = "trajectory-001"
status = CompletionStatus.fromValue("ready")
}Content copied to clipboard