Skip to main content

ParallelModelFeatureExtractionClient.SendAsync<TRequest> method

Submits a feature extraction job for the specified model.

public Task<JsonElement> SendAsync<TRequest>(Guid modelId, TRequest request, string computeSize,
string inputEncryptionKey, string outputEncryptionKey, TimeSpan? timeout = default,
CancellationToken cancellationToken = default)
where TRequest : class, IParallelModelFeatureExtractionSendRequest
parameterdescription
TRequestThe type of the job submission request.
modelIdThe model identifier.
requestThe job submission request containing the input and output configuration.
computeSizeThe compute size identifier sent with the request.
inputEncryptionKeyThe Base64 encryption key for the input data or artifact.
outputEncryptionKeyThe Base64 encryption key for the output data or artifact.
timeoutAn optional timeout for the API request.
cancellationTokenA token used to cancel the asynchronous operation.

Return Value​

A task that returns the job submission response.

Exceptions​

exceptioncondition
ParallelModelConfigurationExceptionA required identifier, compute size or supplied encryption key is invalid.
ArgumentNullExceptionThe request is null.

See Also​