ComputeAlgorithmRef
References the algorithm to run, in
nautilus.compute() and
nautilus.freeCompute().
Everything ComputeAssetRef has, plus two algorithm-specific
fields.
Usage
const : ComputeAlgorithmRef = {
: 'did:ope:5678wxyz...'
}Properties
did / serviceId / userdata
As ComputeAssetRef.
algocustomdata (optional)
- Type:
Record<string, unknown>
Values for the algorithm's own consumer parameters, declared in its algorithm metadata
(metadata.algorithm.consumerParameters), as distinct from the userdata its service
takes. When that list is absent or empty, the parameters nested under the container
(metadata.algorithm.container.consumerParameters), which some DDOs carry, are used
instead. getAlgorithmConsumerParameters(asset) returns the list that applies. Checked
before anything is sent (see validation).
const : ComputeAlgorithmRef = {
: 'did:ope:5678wxyz...',
: { : 10 }
}envs (optional)
- Type:
Record<string, string>
Environment variables set inside the algorithm container. New in C2D v2.
const : ComputeAlgorithmRef = {
: 'did:ope:5678wxyz...',
: { : 'debug' }
}