mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-29 03:09:45 +02:00
chore(prebuilt): un-deprecate tool node for now (#6295)
This commit is contained in:
@@ -19,7 +19,7 @@ test-fast:
|
||||
LANGGRAPH_TEST_FAST=1 uv run pytest $(TEST)
|
||||
|
||||
test:
|
||||
make start-services && LANGGRAPH_TEST_FAST=0 uv run pytest $(TEST); \
|
||||
make start-services && LANGGRAPH_TEST_FAST=0 uv run --active pytest $(TEST); \
|
||||
EXIT_CODE=$$?; \
|
||||
make stop-services; \
|
||||
exit $$EXIT_CODE
|
||||
|
||||
@@ -73,9 +73,7 @@ from langgraph.errors import GraphBubbleUp
|
||||
from langgraph.graph.message import REMOVE_ALL_MESSAGES
|
||||
from langgraph.store.base import BaseStore
|
||||
from langgraph.types import Command, Send
|
||||
from langgraph.warnings import LangGraphDeprecatedSinceV10
|
||||
from pydantic import BaseModel
|
||||
from typing_extensions import deprecated
|
||||
|
||||
INVALID_TOOL_NAME_ERROR_TEMPLATE = (
|
||||
"Error: {requested_tool} is not a valid tool, try one of [{available_tools}]."
|
||||
@@ -232,10 +230,6 @@ def _infer_handled_types(handler: Callable[..., str]) -> tuple[type[Exception],
|
||||
return (Exception,)
|
||||
|
||||
|
||||
@deprecated(
|
||||
"ToolNode has been moved to `langchain.agents.tool_node`. Please update your import to `from langchain.agents.tool_node import ToolNode`.",
|
||||
category=LangGraphDeprecatedSinceV10,
|
||||
)
|
||||
class ToolNode(RunnableCallable):
|
||||
"""A node that runs the tools called in the last AIMessage.
|
||||
|
||||
@@ -818,10 +812,6 @@ def tools_condition(
|
||||
return "__end__"
|
||||
|
||||
|
||||
@deprecated(
|
||||
"InjectedState has been moved to `langchain.agents.tool_node`. Please update your import to `from langchain.agents.tool_node import InjectedState`.",
|
||||
category=LangGraphDeprecatedSinceV10,
|
||||
)
|
||||
class InjectedState(InjectedToolArg):
|
||||
"""Annotation for injecting graph state into tool arguments.
|
||||
|
||||
@@ -898,10 +888,6 @@ class InjectedState(InjectedToolArg):
|
||||
self.field = field
|
||||
|
||||
|
||||
@deprecated(
|
||||
"InjectedStore has been moved to `langchain.agents.tool_node`. Please update your import to `from langchain.agents.tool_node import InjectedStore`.",
|
||||
category=LangGraphDeprecatedSinceV10,
|
||||
)
|
||||
class InjectedStore(InjectedToolArg):
|
||||
"""Annotation for injecting persistent store into tool arguments.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user