Build a helper that keeps a running summary of what it has processed so far. Each time you record a value, it folds into the summary; ask for the summary any time and it reflects everything recorded so far. Complete record_item and summarize. Note: uses google-adk session state. record_item(service, app_name, user_id, session_id, value) records one processed value. summarize(service, app_name, user_id, session_id) returns the running summary {"total": ..., "count": ...}, or {"total": 0, "count": 0} when nothing was recorded.
This challenge asks you to complete two helper functions that keep a running summary (total and count) across conversation turns using google-adk session state. The helper relies on InMemorySessionService and must correctly reflect every recorded value in the summary at any point, including the empty-state boundary condition.
Uses google-adk session state to keep a running total and count across a conversation. A google-adk agent holds a session per conversation, and values that must persist between turns are stored in session state. The habit that matters is verifying it on the boundary cases — nothing recorded yet, one value, several values — not just the single-value happy path.