diff --git a/libs/prebuilt/langgraph/prebuilt/tool_node.py b/libs/prebuilt/langgraph/prebuilt/tool_node.py index b2c7cf8d0..384e8acd0 100644 --- a/libs/prebuilt/langgraph/prebuilt/tool_node.py +++ b/libs/prebuilt/langgraph/prebuilt/tool_node.py @@ -850,7 +850,7 @@ def _get_store_arg(tool: BaseTool) -> Optional[str]: if _is_injection(type_arg, InjectedStore) ] if len(injections) > 1: - ValueError( + raise ValueError( "A tool argument should not be annotated with InjectedStore more than " f"once. Received arg {name} with annotations {injections}." )