totalCost

open fun totalCost(): Double

Total cost in dollars combining LLM and embedding invocations, including any child processes when the implementation supports subtree aggregation. Use this when you want the full cost of the process; use cost for LLM-only.