VocalDocscontracts 1.65.0

DecisionRunUsage

What a decision run used (1.59.0): its decision_request units rated at the run's creation like any decision request, and its raw input units. A run has no Call, so it writes no Usage event, and its amount counts towards neither the spend counter nor the spend cap. Numbers only.

An object with 7 fields.

Fields

FieldTypeRequiredDescription
amount_microsinteger or nullyesThe requests times the unit price, rounded half up to whole micro-USD; null when rated is false.
credential_sourceCredentialModeyesWhose vendor account bore the requests: byok on the Organization's own key.
input_tokensinteger or nullyesThe Provider's raw input units when it counts tokens, an unpriced measure; null otherwise.
price_idVendorPriceId or nullyesThe vendor price row the usage was rated by; null when rated is false.
ratedbooleanyesTrue when a vendor price row of the decision stage, the Provider, the model and decision_request was in force at the run's creation; false otherwise, when the price and the amount are null.
requestsintegeryesThe decision requests the run made, failed ones and the batches included: the quantity of the decision_request unit.
unit_price_microsnumber or nullyesThe price of one request in micro-USD from that row; null when rated is false.