From 98216389654b42150d30d8fd25af2276134964c2 Mon Sep 17 00:00:00 2001 From: Vadym Barda Date: Wed, 2 Oct 2024 14:54:25 -0400 Subject: [PATCH] docs: add InjectedStore to reference (#1976) --- docs/docs/reference/prebuilt.md | 1 + libs/langgraph/langgraph/prebuilt/tool_node.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/docs/docs/reference/prebuilt.md b/docs/docs/reference/prebuilt.md index 9e42c40fc..bd3ab9a8e 100644 --- a/docs/docs/reference/prebuilt.md +++ b/docs/docs/reference/prebuilt.md @@ -10,6 +10,7 @@ members: - ToolNode - InjectedState + - InjectedStore - tools_condition ::: langgraph.prebuilt.tool_validator diff --git a/libs/langgraph/langgraph/prebuilt/tool_node.py b/libs/langgraph/langgraph/prebuilt/tool_node.py index d01ce82db..91e6483a1 100644 --- a/libs/langgraph/langgraph/prebuilt/tool_node.py +++ b/libs/langgraph/langgraph/prebuilt/tool_node.py @@ -461,6 +461,9 @@ class InjectedStore(InjectedToolArg): the store will be automatically propagated to the tools with InjectedStore args when using ToolNode. + !!! Warning + `InjectedStore` annotation requires `langchain-core >= 0.3.8` + Example: ```python from typing import Any