Commit 3ea00c2
committed
fix: coerce non-string metadata values instead of dropping them
The v4 migration guide states non-string metadata values are
"automatically coerced to strings," but the implementation drops
them with a warning. This breaks LangGraph integration since
LangGraph injects non-string metadata (langgraph_step=int,
langgraph_triggers=list, langgraph_path=tuple) into RunnableConfig
at runtime.
Coerce non-string values via str() before validation, matching
the documented behavior.
Fixes #15711 parent 9006683 commit 3ea00c2
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
256 | 260 | | |
257 | 261 | | |
258 | 262 | | |
| |||
0 commit comments