Project 02 · Personal Finance Helper Agent
Project· 4–6 hours· Lesson 26 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
Project requirements
- Tools:
load_expenses(month),sum_by_category(month),top_merchants(n, month),convert_currency(amount, from_currency, to_currency)(static rates file). Each has a docstring, typed args and error handling. (We addmastery.tools.calculatorfor differences and ratios.) create_agentwithopenai/gpt-oss-20b, a clear system prompt, andresponse_format=ToolStrategy(FinanceAnswer).- Stream tool calls to the notebook. Trace to the LangSmith project
m02-finance-agent. - 10 test questions with expected answers (README). At least 8 correct in every run (use
N_RUNS = 3for your final score).
Before you start
Lessons 02.01–02.07
Python in this lesson
Python guideNew hereChained comparison (0 < x < 10)Assignment expression (:=)functools
