Skip to content

The agent engineering platform.

chore(langchain_v1): switch order of params in `ToolRuntime` (#33518)

Sydney Runkle0c8cbfb7deb3
diff --git a/libs/langchain_v1/langchain/tools/tool_node.py b/libs/langchain_v1/langchain/tools/tool_node.py
index 2c86c4f3c0..7e3229627a 100644
--- a/libs/langchain_v1/langchain/tools/tool_node.py
+++ b/libs/langchain_v1/langchain/tools/tool_node.py
@@ -1332,7 +1332,7 @@ def tools_condition(
@dataclass
-class ToolRuntime(InjectedToolArg, Generic[StateT, ContextT]):
+class ToolRuntime(InjectedToolArg, Generic[ContextT, StateT]):
"""Runtime context automatically injected into tools.
When a tool function has a parameter named 'tool_runtime' with type hint