Problem
AgentState TypedDict uses double-underscore keys:
"__start_number__": 1,
"__previous_text__": "",
Python reserves __dunder__ names for special methods and attributes. While this works today, it's non-standard for TypedDict and could cause unexpected behavior with introspection tools, serialization, or future Python versions.
Fix
Rename to regular keys: start_number and previous_text.