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
| parameter | description |
|---|---|
| TRequest | The type of the job submission request. |
| modelId | The model identifier. |
| request | The inference request containing the model and feature values. |
| modelEncryptionKey | The encryption key for the trained model blob. |
| timeout | An optional timeout for the API request. |
| cancellationToken | A token used to cancel the asynchronous operation. |
Return Value
A task that returns the API response.
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | The request is null. |
| ParallelModelConfigurationException | A required configuration value or identifier is invalid. |
See Also
- interface IParallelModelPredictSendRequest
- class ParallelModelPredictClient
- namespace ParallelModel.Sdk.ML.Predict