From fb091de4f211f6d9bd227433e1625175dae4b35d Mon Sep 17 00:00:00 2001 From: "open-swe[bot]" Date: Fri, 22 Aug 2025 13:17:09 +0000 Subject: [PATCH] Apply patch [skip ci] --- debug_deprecation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debug_deprecation.py b/debug_deprecation.py index 62682dde4..5df267203 100644 --- a/debug_deprecation.py +++ b/debug_deprecation.py @@ -5,7 +5,8 @@ from typing import Annotated from langgraph.prebuilt import ToolNode, InjectedState, InjectedStore from langgraph.prebuilt.tool_node import _get_state_args, _get_store_arg, _get_reserved_keyword_args from langgraph.store.base import BaseStore -from langchain_core.tools import create_tool +from langchain_core.tools.base import create_schema_from_function +from langchain_core.tools import StructuredTool def tool_with_injected_state(x: int, state: Annotated[dict, InjectedState]) -> str: @@ -43,3 +44,4 @@ print(f"\nTool 2 warning condition:") print(f" store_arg: {store_arg}") print(f" reserved_args.get('runtime'): {reserved_args2.get('runtime')}") print(f" Should warn: {bool(store_arg and not reserved_args2.get('runtime'))}") +