Class InferenceRequest
Structure that represents an inference request based on ACR's Platform-Model Communication for AI.
Namespace: Nvidia.Clara.DicomAdapter.API.Rest
Assembly: Nvidia.Clara.Dicom.API.dll
Syntax
public class InferenceRequest : object
Remarks
Refer to ACR DSI Model API for more information.
transactionID>
is required.
inputMetadata>
is required.
inputResources>
is required.
Examples
{
"transactionID": "ABCDEF123456",
"priority": "255",
"inputMetadata": { ... },
"inputResources": [ ... ],
"outputResources": [ ... ]
}
Constructors
| Improve this Doc View SourceInferenceRequest()
Declaration
public InferenceRequest()
Properties
| Improve this Doc View SourceAlgorithm
Declaration
public InputConnectionDetails Algorithm { get; }
Property Value
Type | Description |
---|---|
InputConnectionDetails |
ClaraJobPriority
Declaration
public JobPriority ClaraJobPriority { get; }
Property Value
Type | Description |
---|---|
JobPriority |
InferenceRequestId
Unique identity for the request.
Declaration
public Guid InferenceRequestId { get; set; }
Property Value
Type | Description |
---|---|
Guid |
InputMetadata
Gets or sets the details of the data associated with the inference request.
Declaration
public InferenceRequestMetadata InputMetadata { get; set; }
Property Value
Type | Description |
---|---|
InferenceRequestMetadata |
InputResources
Gets or set a list of data sources to query/retrieve data from. When multiple data sources are specified, the system will query based on the order the list was received.
Declaration
public IList<RequestInputDataResource> InputResources { get; set; }
Property Value
Type | Description |
---|---|
IList<RequestInputDataResource> |
JobId
Internal use - gets or sets the Job ID for the request once public Guid InferenceRequestId { get; set; } = Guid.NewGuid(); the job is created with Clara Platform Jobs API.
Declaration
public string JobId { get; set; }
Property Value
Type | Description |
---|---|
String |
Remarks
Internal use only.
JobName
Declaration
public string JobName { get; }
Property Value
Type | Description |
---|---|
String |
OutputResources
Gets or set a list of data sources to export results to. In order to export via DICOMweb, the Clara Pipeline must include and use Register Results Operator and register the results with agent name "DICOMweb" or the values configured in dicom>scu>export>agent field.
Declaration
public IList<RequestOutputDataResource> OutputResources { get; set; }
Property Value
Type | Description |
---|---|
IList<RequestOutputDataResource> |
PayloadId
Internal use only - get or sets the Payload ID for the request once the job is created with Clara Platform Jobs API.
Declaration
public string PayloadId { get; set; }
Property Value
Type | Description |
---|---|
String |
Remarks
Internal use only.
Priority
Gets or sets the priority of a request.
Declaration
public byte Priority { get; set; }
Property Value
Type | Description |
---|---|
Byte |
Remarks
Default value is 128
which maps to JOB_PRIORITY_NORMAL
.
Any value lower than 128
is map to JOB_PRIORITY_LOWER
.
Any value between 129-254
(inclusive) is set to JOB_PRIORITY_HIGHER
.
Value of 255
maps to JOB_PRIORITY_IMMEDIATE
.
State
Internal use only - get or sets the state of a inference request.
Declaration
public InferenceRequestState State { get; set; }
Property Value
Type | Description |
---|---|
InferenceRequestState |
Remarks
Internal use only.
Status
Internal use only - get or sets the status of a inference request.
Declaration
public InferenceRequestStatus Status { get; set; }
Property Value
Type | Description |
---|---|
InferenceRequestStatus |
Remarks
Internal use only.
StoragePath
Internal use only - get or sets the status of a inference request.
Declaration
public string StoragePath { get; set; }
Property Value
Type | Description |
---|---|
String |
Remarks
Internal use only.
TransactionId
Gets or set the transaction ID of a request.
Declaration
public string TransactionId { get; set; }
Property Value
Type | Description |
---|---|
String |
TryCount
Internal use only - get or sets number of retries performed.
Declaration
public int TryCount { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
Internal use only.
Methods
| Improve this Doc View SourceConfigureTemporaryStorageLocation(String)
Configures temporary storage location used to store retrieved data.
Declaration
public void ConfigureTemporaryStorageLocation(string storagePath)
Parameters
Type | Name | Description |
---|---|---|
String | storagePath |
IsValid(out String)
Declaration
public bool IsValid(out string details)
Parameters
Type | Name | Description |
---|---|---|
String | details |
Returns
Type | Description |
---|---|
Boolean |