ParallelModelModelSelectionClient
Class: ParallelModelModelSelectionClient
Defined in: jobs.ts:543
Client for submitting Model Selection jobs and accessing their lifecycle operations and artifacts.
Extends
ArtifactJobClient<ParallelModelModelSelectionSendResponseModel,ParallelModelModelSelectionCancelResponseModel,ParallelModelModelSelectionLogResponseModel[],ParallelModelModelSelectionResultResponseModel,ParallelModelModelSelectionExtractResponseModel,ParallelModelModelSelectionStatusResponseModel>
Constructors
Constructor
new ParallelModelModelSelectionClient(
transport):ParallelModelModelSelectionClient
Defined in: jobs.ts:549
Creates a ParallelModelModelSelectionClient instance.
Parameters
transport
Shared HTTP transport and authentication context.
Returns
ParallelModelModelSelectionClient
Overrides
Properties
dataset
readonlydataset:boolean=false
Defined in: jobs.ts:24
Whether to use dataset-specific result and artifact routes.
Inherited from
eventType
readonlyeventType:string
Defined in: jobs.ts:24
Artifact event identifier; defaults to the job client's configured event type when applicable.
Inherited from
module
readonlymodule:string
Defined in: jobs.ts:24
API module or pipeline module identifier.
Inherited from
typed
readonlytyped:boolean=false
Defined in: jobs.ts:24
Whether selected lifecycle responses receive additional decoding.
Inherited from
Methods
cancelAsync()
cancelAsync(
modelId,jobId,computeSize,timeout?,signal?):Promise<ParallelModelModelSelectionCancelResponseModel>
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<ParallelModelModelSelectionCancelResponseModel>
The job cancellation response data.
Inherited from
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
ArtifactJobClient.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
ArtifactJobClient.downloadToStreamAsync
extractAsync()
extractAsync(
modelId,jobId,fileName,computeSize,inputEncryptionKey,outputEncryptionKey,eventType?,timeout?,signal?):Promise<ParallelModelModelSelectionExtractResponseModel>
Defined in: jobs.ts:133
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.
fileName
string
File name or artifact name, depending on the operation.
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.
eventType?
string = ...
Artifact event identifier; defaults to the job client's configured event type when applicable.
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<ParallelModelModelSelectionExtractResponseModel>
The artifact extraction response data.
Inherited from
ArtifactJobClient.extractAsync
logAsync()
logAsync(
modelId,jobId,computeSize,timeout?,signal?):Promise<ParallelModelModelSelectionLogResponseModel[]>
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<ParallelModelModelSelectionLogResponseModel[]>
The job log response data.
Inherited from
resultAsync()
resultAsync(
modelId,jobId,computeSize,inputEncryptionKey,eventType?,fileName?,timeout?,signal?):Promise<ParallelModelModelSelectionResultResponseModel>
Defined in: jobs.ts:118
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.
eventType?
string = ...
Artifact event identifier; defaults to the job client's configured event type when applicable.
fileName?
string = 'result.json'
File name or artifact name, depending on the operation.
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<ParallelModelModelSelectionResultResponseModel>
The decoded job result response data.
Inherited from
sendAsync()
sendAsync(
modelId,request,computeSize,inputEncryptionKey,outputEncryptionKey,timeout?,signal?):Promise<ParallelModelModelSelectionSendResponseModel>
Defined in: jobs.ts:562
Submits a Model Selection job using the supplied request, compute size and encryption keys.
Parameters
modelId
string
UUID of the ParallelModel model that owns the resource.
request
IParallelModelModelSelectionSendRequest
Typed request payload for the operation.
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<ParallelModelModelSelectionSendResponseModel>
Decoded job submission response; this does not wait for job completion.
statusAsync()
statusAsync(
modelId,jobId,computeSize,timeout?,signal?):Promise<ParallelModelModelSelectionStatusResponseModel>
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<ParallelModelModelSelectionStatusResponseModel>
The job status response data.