Skip to main content

ParallelModelPredictClient

ParallelModel TypeScript SDK


Class: ParallelModelPredictClient

Defined in: shared.ts:146

Submits inference requests against stored model artifacts.

Constructors​

Constructor​

new ParallelModelPredictClient(transport): ParallelModelPredictClient

Defined in: shared.ts:152

Creates a ParallelModelPredictClient instance.

Parameters​

transport​

Transport

Shared HTTP transport and authentication context.

Returns​

ParallelModelPredictClient

Methods​

sendAsync()​

sendAsync(modelId, request, modelEncryptionKey, timeout?, signal?): Promise<unknown>

Defined in: shared.ts:163

Submits an inference request using the trained model encryption key; defaults to automatic input layout and a 200-second request timeout.

Parameters​

modelId​

string

UUID of the ParallelModel model that owns the resource.

request​

PredictJobSendRequestModel

Typed request payload for the operation.

modelEncryptionKey​

string

Base64-encoded 32-byte key for the trained model blob.

timeout?​

number

HTTP request timeout in milliseconds; omit to use the transport default.

signal?​

AbortSignal

Optional abort signal used to cancel local waiting or HTTP requests.

Returns​

Promise<unknown>

Decoded inference response data.