Skip to content

About

Google ADK example (ToolContext)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Mini Expense Tracker Agent

A simple expense tracker built with Google ADK (Agent Development Kit) for practicing Tools and ToolContext.

Features

  • 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

Project Structure

expense_tracker/
  expense_agent/
    __init__.py
    agent.py
  .env
  pyproject.toml
  README.md

Setup

  1. Install dependencies:
uv sync
  1. Configure your .env file with your API key:
GOOGLE_API_KEY=your_api_key_here
  1. Run the agent:
adk web

Usage Examples

  • "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"

Categories

Common categories: food, transport, entertainment, shopping, bills, health, other

About

Google ADK example (ToolContext)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages