Type Alias SageMakerLLMContentHandler
SageMakerLLMContentHandler: {
accepts: string;
contentType: string;
transformInput: ((prompt: string, modelKwargs: Record<string, unknown>) => Promise<Uint8Array<ArrayBufferLike>>);
transformOutput: ((output: Uint8Array<ArrayBufferLike>) => Promise<string>);
}
Type declaration
accepts: string
contentType: string
transformInput: ((prompt: string, modelKwargs: Record<string, unknown>) => Promise<Uint8Array<ArrayBufferLike>>)
transformOutput: ((output: Uint8Array<ArrayBufferLike>) => Promise<string>)
Transforms the prompt and model arguments into a specific format for sending to SageMaker.