Extract cost information from a DSPrrr result object.
Value
A numeric value (for single results) or a dsprrr_cost_summary object
(for batch results and evaluations) containing:
costs: A tibble with per-item coststotal: Total cost across all itemsn_missing: Count of items with missing cost data
See also
session_cost() for session-level cost tracking
Examples
if (FALSE) { # \dontrun{
result <- run(mod, text = "hello", .return_format = "structured")
get_cost(result)
} # }
