Skip to content

SampleRequest

Source code in docs_src/capo_sagemakerjobruntime/types/sample_request.py
class SampleRequest(TypedDict, closed=True):
    job_arn: "capo_sagemakerjobruntime.types.job_arn.JobArn"
    """The job ARN that identifies which model session to route the inference request to."""
    trajectory_id: "capo_sagemakerjobruntime.types.trajectory_id.TrajectoryId"
    """The trajectory ID for grouping turns into a single rollout. Each turn (prompt and response) is captured for later use."""
    body: "capo_sagemakerjobruntime.types.inference_request_body.InferenceRequestBody"
    """The raw inference request body in OpenAI-compatible JSON format."""

body instance-attribute

The raw inference request body in OpenAI-compatible JSON format.

job_arn instance-attribute

job_arn: JobArn

The job ARN that identifies which model session to route the inference request to.

trajectory_id instance-attribute

trajectory_id: TrajectoryId

The trajectory ID for grouping turns into a single rollout. Each turn (prompt and response) is captured for later use.