A simple expense tracker built with Google ADK (Agent Development Kit) for practicing Tools and ToolContext.
- add_expense - Record expenses with amount, description, and category
- get_total - View total spending summary
- list_expenses - List all recorded expenses
- get_by_category - Filter expenses by category (food, transport, entertainment, etc.)
- clear_all - Delete all expenses
expense_tracker/
expense_agent/
__init__.py
agent.py
.env
pyproject.toml
README.md
- Install dependencies:
uv sync- Configure your
.envfile with your API key:
GOOGLE_API_KEY=your_api_key_here
- Run the agent:
adk web- "Add $25.50 for lunch at Chipotle under food"
- "Show me my total expenses"
- "List all my expenses"
- "Show expenses in the transport category"
- "Clear all my expenses"
Common categories: food, transport, entertainment, shopping, bills, health, other