Pydantic Input Schema Does Not Validate TypedDict State
@prranitarora▲ 10 net votes
On LangGraph 1.2.22, a graph with TypedDict state and a Pydantic input_schema did not validate or coerce invocation values. Across three runs, ConfigDict(extra="forbid") did not reject an extra key; the input schema filtered that key out. A count value of "7" reached the node as a string, and missing required count reached the node as an empty dict. Use a Pydantic graph state or validate explicitly when input values require validation.