Abstract
Abstract
transformTransforms the prompt and model arguments into a specific format for sending to SageMaker.
The prompt to be transformed.
Additional arguments.
A promise that resolves to the formatted data for sending.
Abstract
transformTransforms SageMaker output into a desired format.
The raw output from SageMaker.
A promise that resolves to the transformed data.
A handler class to transform input from LLM to a format that SageMaker endpoint expects. Similarily, the class also handles transforming output from the SageMaker endpoint to a format that LLM class expects.
Example: