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
| Field | Type | Required | Description |
|---|---|---|---|
amount_micros | integer or null | yes | The requests times the unit price, rounded half up to whole micro-USD; null when rated is false. |
credential_source | CredentialMode | yes | Whose vendor account bore the requests: byok on the Organization's own key. |
input_tokens | integer or null | yes | The Provider's raw input units when it counts tokens, an unpriced measure; null otherwise. |
price_id | VendorPriceId or null | yes | The vendor price row the usage was rated by; null when rated is false. |
rated | boolean | yes | True 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. |
requests | integer | yes | The decision requests the run made, failed ones and the batches included: the quantity of the decision_request unit. |
unit_price_micros | number or null | yes | The price of one request in micro-USD from that row; null when rated is false. |