library · inferred from evidence
ToolRuntime
A runtime environment that provides access to the store for tools.
- Diagnose: tool schema sent to the model includes config or runtime parameters
Shows how to fix diagnose: tool schema sent to the model includes config or runtime parameters. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
- Defining tools: the @tool decorator and the ToolRuntime injection
In v1 tools are plain functions decorated with @tool from langchain.tools. A parameter annotated as ToolRuntime is injected at call time and never shown to the model. Do not name your own parameters config or runtime.