Skip to main content

ParallelModelDatasetClient

ParallelModel TypeScript SDK


Class: ParallelModelDatasetClient

Defined in: jobs.ts:565

Client for submitting Dataset jobs and accessing their lifecycle operations and artifacts.

Extends​

Constructors​

Constructor​

new ParallelModelDatasetClient(transport): ParallelModelDatasetClient

Defined in: jobs.ts:571

Creates a ParallelModelDatasetClient instance.

Parameters​

transport​

Transport

Shared HTTP transport and authentication context.

Returns​

ParallelModelDatasetClient

Overrides​

JobClient.constructor

Properties​

dataset​

readonly dataset: boolean = false

Defined in: jobs.ts:24

Whether to use dataset-specific result and artifact routes.

Inherited from​

JobClient.dataset


eventType​

readonly eventType: string

Defined in: jobs.ts:24

Artifact event identifier; defaults to the job client's configured event type when applicable.

Inherited from​

JobClient.eventType


module​

readonly module: string

Defined in: jobs.ts:24

API module or pipeline module identifier.

Inherited from​

JobClient.module


typed​

readonly typed: boolean = false

Defined in: jobs.ts:24

Whether selected lifecycle responses receive additional decoding.

Inherited from​

JobClient.typed

Methods​

cancelAsync()​

cancelAsync(modelId, jobId, computeSize, timeout?, signal?): Promise<ParallelModelDatasetCancelResponseModel>

Defined in: jobs.ts:40

Requests cancellation of a remote job.

Parameters​

modelId​

string

UUID of the ParallelModel model that owns the resource.

jobId​

string

UUID of the remote job.

computeSize​

string

Compute-size identifier used in the job request header.

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<ParallelModelDatasetCancelResponseModel>

The job cancellation response data.

Inherited from​

JobClient.cancelAsync


downloadBytesAsync()​

downloadBytesAsync(modelId, jobId, blobId, computeSize, inputEncryptionKey, timeout?, signal?): Promise<Uint8Array<ArrayBuffer>>

Defined in: jobs.ts:78

Downloads a stored artifact or blob as a Uint8Array.

Parameters​

modelId​

string

UUID of the ParallelModel model that owns the resource.

jobId​

string

UUID of the remote job.

blobId​

string

UUID of the stored blob.

computeSize​

string

Compute-size identifier used in the job request header.

inputEncryptionKey​

string

Base64-encoded 32-byte key for the input blob or job artifact.

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<Uint8Array<ArrayBuffer>>

The downloaded file contents as bytes.

Inherited from​

JobClient.downloadBytesAsync


downloadToStreamAsync()​

downloadToStreamAsync(modelId, jobId, blobId, destination, computeSize, inputEncryptionKey, timeout?, signal?): Promise<void>

Defined in: jobs.ts:92

Streams a job artifact to a writable stream without closing the destination.

Parameters​

modelId​

string

UUID of the ParallelModel model that owns the resource.

jobId​

string

UUID of the remote job.

blobId​

string

UUID of the stored blob.

destination​

WritableStream<Uint8Array<ArrayBufferLike>>

Writable stream receiving the downloaded bytes without being closed by the SDK.

computeSize​

string

Compute-size identifier used in the job request header.

inputEncryptionKey​

string

Base64-encoded 32-byte key for the input blob or job artifact.

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<void>

A promise that resolves when the stream transfer completes.

Inherited from​

JobClient.downloadToStreamAsync


extractAsync()​

extractAsync(modelId, jobId, filePath, computeSize, inputEncryptionKey, outputEncryptionKey, timeout?, signal?): Promise<ParallelModelDatasetExtractResponseModel>

Defined in: jobs.ts:610

Extracts a file from a job artifact into a separately accessible blob.

Parameters​

modelId​

string

UUID of the ParallelModel model that owns the resource.

jobId​

string

UUID of the remote job.

filePath​

string

Path of the file within the dataset artifact.

computeSize​

string

Compute-size identifier used in the job request header.

inputEncryptionKey​

string

Base64-encoded 32-byte key for the input blob or job artifact.

outputEncryptionKey​

string

Base64-encoded 32-byte key for the output artifact.

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<ParallelModelDatasetExtractResponseModel>

The artifact extraction response data.


logAsync()​

logAsync(modelId, jobId, computeSize, timeout?, signal?): Promise<ParallelModelDatasetLogResponseModel[]>

Defined in: jobs.ts:62

Retrieves logs emitted by the remote job.

Parameters​

modelId​

string

UUID of the ParallelModel model that owns the resource.

jobId​

string

UUID of the remote job.

computeSize​

string

Compute-size identifier used in the job request header.

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<ParallelModelDatasetLogResponseModel[]>

The job log response data.

Inherited from​

JobClient.logAsync


resultAsync()​

resultAsync(modelId, jobId, computeSize, inputEncryptionKey, timeout?, signal?): Promise<ParallelModelDatasetResultResponseModel>

Defined in: jobs.ts:596

Retrieves the result of a remote job.

Parameters​

modelId​

string

UUID of the ParallelModel model that owns the resource.

jobId​

string

UUID of the remote job.

computeSize​

string

Compute-size identifier used in the job request header.

inputEncryptionKey​

string

Base64-encoded 32-byte key for the input blob or job artifact.

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<ParallelModelDatasetResultResponseModel>

The decoded job result response data.


sendAsync()​

sendAsync<T>(modelId, request, computeSize, outputEncryptionKey, timeout?, signal?): Promise<ParallelModelDatasetSendResponseModel<T>>

Defined in: jobs.ts:584

Submits a Dataset job using the supplied request, compute size and encryption keys.

Type Parameters​

T​

T

Type of the decoded response or algorithm parameter object, as specified by the signature.

Parameters​

modelId​

string

UUID of the ParallelModel model that owns the resource.

request​

ParallelModelDatasetSendRequestModel<T>

Typed request payload for the operation.

computeSize​

string

Compute-size identifier used in the job request header.

outputEncryptionKey​

string

Base64-encoded 32-byte key for the output artifact.

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<ParallelModelDatasetSendResponseModel<T>>

Decoded job submission response; this does not wait for job completion.


statusAsync()​

statusAsync(modelId, jobId, computeSize, timeout?, signal?): Promise<ParallelModelDatasetStatusResponseModel>

Defined in: jobs.ts:51

Retrieves the current status of a remote job.

Parameters​

modelId​

string

UUID of the ParallelModel model that owns the resource.

jobId​

string

UUID of the remote job.

computeSize​

string

Compute-size identifier used in the job request header.

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<ParallelModelDatasetStatusResponseModel>

The job status response data.

Inherited from​

JobClient.statusAsync