# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.2.0] - 2026-03-01

### Added
- Google Gemini provider support — works with both `google-genai` (newer SDK) and `google-generativeai` (older SDK)
- `model=` optional parameter in `session.track()` to override model name when the response object doesn't include it (older Gemini SDK)
- `pip install agenticbudget[gemini]` optional extra for the Google Gemini SDK
- Gemini models: gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-flash-lite, gemini-2.0-flash, gemini-2.0-flash-lite, gemini-1.5-pro, gemini-1.5-flash, gemini-1.5-flash-8b
- New OpenAI models: gpt-5, gpt-5-mini, gpt-5-nano, gpt-4.1, gpt-4.1-mini, gpt-4.1-nano, o3-pro
- New Anthropic models: claude-opus-4-5, claude-opus-4-1, claude-opus-4, claude-sonnet-4-5, claude-sonnet-4, claude-haiku-4-5

### Fixed
- Corrected pricing for `claude-opus-4-6` ($5.00/$25.00 per MTok, not $15.00/$75.00)
- Corrected pricing for `claude-haiku-4-5` ($1.00/$5.00 per MTok, not $0.80/$4.00)
- Corrected pricing for `o1-mini` ($1.10/$4.40 per MTok, not $3.00/$12.00)

---

## [0.1.0] - 2026-03-01

### Added
- `CostSession` context manager for tracking LLM API costs per step
- Auto-detection of OpenAI and Anthropic providers from response objects
- Budget enforcement with `BudgetExceededWarning` (default) or `BudgetExceededError` (strict mode)
- Formatted session summary table with cost breakdown and percentages
- `CostTracker` for persistent session storage in `~/.agentbudget/sessions.json`
- Aggregate reports with most-expensive step and most-used model statistics
- `@track` decorator for zero-boilerplate cost tracking
- Support for OpenAI models: gpt-4o, gpt-4o-mini, gpt-4, gpt-3.5-turbo, o1, o1-mini, o3-mini and variants
- Support for Anthropic models: claude-3-5-sonnet, claude-3-5-haiku, claude-3-opus and variants
- Zero required dependencies — openai and anthropic are optional extras
- Python 3.9+ compatible
