Skip to main content

ParallelModelPredictClient.SendAsync<TRequest> method

Submits an inference request using the specified trained model.

public Task<JsonElement> SendAsync<TRequest>(Guid modelId, TRequest request,
string modelEncryptionKey, TimeSpan? timeout = default,
CancellationToken cancellationToken = default)
where TRequest : class, IParallelModelPredictSendRequest
parameterdescription
TRequestThe type of the job submission request.
modelIdThe model identifier.
requestThe inference request containing the model and feature values.
modelEncryptionKeyThe encryption key for the trained model blob.
timeoutAn optional timeout for the API request.
cancellationTokenA token used to cancel the asynchronous operation.

Return Value​

A task that returns the API response.

Exceptions​

exceptioncondition
ArgumentNullExceptionThe request is null.
ParallelModelConfigurationExceptionA required configuration value or identifier is invalid.

See Also​