PromptEvalCostLine
One model quantity of a run, marked evaluation (1.55.0; section 13): rated as a Call cost line is, and never billed, because evaluation runs in test.
An object with 10 fields.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
amount_micros | integer or null | yes | The line amount in whole micro-USD; null when unit_price_micros is null. |
lane | CostLane | no | The lane the line was spent in (1.57.0), on a Turn of a trace whose cost_basis is usage_events. Absent from an api older than 1.57.0 and on an estimate; a reader treats its absence as speaker. |
model | string or null | yes | The model or plan item priced; null when the price does not depend on one. |
provider | CostProvider | yes | |
purpose | "evaluation" | yes | Marks the line as evaluation usage. |
quantity | number | yes | How many units were used; minutes and audio minutes may be fractional. On a Turn, the share allocated to it. |
role | PromptEvalUsageRole | yes | |
stage | CostStage | yes | |
unit | CostUnit | yes | |
unit_price_micros | number or null | yes | The price of one unit in micro-USD, fractional for tokens; null when the price list has no price. |