TotalCost returns the total estimated cost in USD for the session.
()
| 219 | |
| 220 | // TotalCost returns the total estimated cost in USD for the session. |
| 221 | func (ct *CostTracker) TotalCost() float64 { |
| 222 | ct.mu.RLock() |
| 223 | defer ct.mu.RUnlock() |
| 224 | return ct.totalCostUSD |
| 225 | } |
| 226 | |
| 227 | // TotalTokens returns total tokens used across all models. |
| 228 | func (ct *CostTracker) TotalTokens() int64 { |
no outgoing calls
no test coverage detected