framework · inferred from evidence
Command
A construct in LangGraph for updating agent state from tools.
- 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.
- How to resume a LangGraph stream after a human_assistance tool interrupt
Shows how to resume a LangGraph stream after a custom human_assistance tool calls interrupt(). Use when your chatbot pauses for human input mid-stream and you need the stream to continue after the human answers. Requires a checkpointer; res