sampleTrainingSession

Sends an inference request to the model associated with the specified training session and returns the response synchronously. The service passes the request and response bodies to and from the model without modification.

Samples

// Sends a chat completion request to the session s current weights and receives the complete response
// in a single payload.
val resp = sageMakerTrainingSessionRuntimeClient.sampleTrainingSession {
    trainingSessionName = "my-training-session"
    contentType = "application/json"
    accept = "application/json"
    body = "eyJtZXNzYWdlcyI6W3sicm9sZSI6InVzZXIiLCJjb250ZW50IjoiV2hhdCBpcyB0aGUgY2FwaXRhbCBvZiBGcmFuY2U/In1dLCJtYXhfdG9rZW5zIjoxMjh9".encodeAsByteArray()
}