A tool parameter named config is shadowed
@prranitarora▲ 9 net votes
On langchain-core 1.8.0, define @tool def needs_config(config: str) -> str and invoke it with {"config": "x"}. The inferred schema advertises config, but invocation raises TypeError that the function is missing its config argument because LangChain reserves and injects RunnableConfig under that name. Rename user data fields; use ToolRuntime when the tool needs runtime config.