**Problem.** When tool calls reach `ToolNode` as a bare list,
`Send("tools", [tool_call])`, tools get the state as a plain dict of
channel values. That is the dispatch `create_agent` uses since #7594 and
langchain-ai/langchain#36960. On a graph whose state is a Pydantic model
or a dataclass, `ToolRuntime.state` and `InjectedState` (typed or not)
get a dict, and values that entered as JSON input stay dicts too, so a
`list[Item]` field arrives as a list of dicts. The same tools reached
through an edge, or through a `ToolCallWithContext` Send, get the model.
**Why.** `StateGraph` coerces state to the schema when it builds a
node's input, and a Send task's input is the Send arg. `ToolNode` reads
the state itself through `CONFIG_KEY_READ`, which returns raw channel
values, and it can't coerce them because it doesn't know the graph's
schema.
**Fix.** Pregel gives each Send task a `CONFIG_KEY_READ_STATE` function
that returns the state the node would get from an edge: its input keys,
managed values included, coerced to its input schema. It is the same
`_proc_input` call that builds a pull task's input. `ToolNode` uses it
for bare tool-call lists. Every other task sets the key to `None`, so a
graph running inside a Send task, such as a subagent called from a tool,
never reads its parent's state. Both packages change together because
`ToolNode` is the only reader of the key.
**Compatibility.** On the bare-list path, Pydantic and dataclass graphs
now get the model instead of a dict, and TypedDict graphs get the tools
node's input keys instead of every channel. Both match what an edge
delivers. `create_agent` graphs (TypedDict state, no managed values) see
the same state as before. With an older `langgraph` that doesn't set the
key, `ToolNode` keeps today's behavior.
`test_tool_node_send_tool_call_gets_same_state_as_edge` fails on main
for the Pydantic and dataclass schemas.
`test_tool_node_in_graph_run_by_send_gets_that_graphs_state` fails if
the other tasks stop setting the key to `None`.