










Context This error only occurs when running the graph via langgraph dev command. The same code works correctly with FastAPI hosting. Problem LangGraph CLI incorrectly attempts to validate InjectedState parameters in tool schemas. When using a typed state class (e.g., AgentState), the validation layer treats injected state parameters as required tool arguments and fails. Workaround Use generic dict type instead of custom state class: ❌ Before: state: Annotated[AgentState, Inject...
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。