SagemakerJobRuntime class
Agentic RFT Runtime Service - manages trajectory and transition data for reinforcement fine-tuning jobs.
Constructors
- SagemakerJobRuntime({required String region, AwsClientCredentials? credentials, AwsClientCredentialsProvider? credentialsProvider, Client? client, String? endpointUrl})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → void - Closes the internal HTTP client if none was provided at creation. If a client was passed as a constructor argument, this becomes a noop.
-
completeRollout(
{required String jobArn, required String trajectoryId, String? clientToken, CompletionStatus? status}) → Future< void> - 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.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sample(
{required Uint8List body, required String jobArn, required String trajectoryId}) → Future< SampleResponse> - Sends an inference request to the model during a job execution. The request and response bodies are forwarded to and from the model without modification. Each turn (prompt and response) is captured for later use.
-
sampleWithResponseStream(
{required Uint8List body, required String jobArn, required String trajectoryId}) → Future< SampleWithResponseStreamResponse> - Sends a streaming inference request to the model during a job execution. Returns the response as a stream of payload chunks. Each turn is captured for later use.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateReward(
{required String jobArn, required List< double> rewards, required String trajectoryId, String? clientToken}) → Future<void> - Updates the reward values for a trajectory and transitions it to reward-received status, signaling that it is eligible for processing. Call this operation after CompleteRollout to provide the computed reward scores.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited