(accumulated_cost_file)
| 265 | } |
| 266 | |
| 267 | def load_accumulated_cost(accumulated_cost_file): |
| 268 | if os.path.exists(accumulated_cost_file): |
| 269 | with open(accumulated_cost_file, "r", encoding="utf-8") as f: |
| 270 | data = json.load(f) |
| 271 | return data.get("total_cost", 0.0) |
| 272 | else: |
| 273 | return 0.0 |
| 274 | |
| 275 | def save_accumulated_cost(accumulated_cost_file, cost): |
| 276 | with open(accumulated_cost_file, "w", encoding="utf-8") as f: |
no outgoing calls
no test coverage detected