The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
core[patch]: remove redundant imports (#28861)
Wang Ran (汪然)e5c9da3eb622
diff --git a/libs/core/langchain_core/runnables/base.py b/libs/core/langchain_core/runnables/base.pyindex 3e43fb10a8..893f393d8b 100644--- a/libs/core/langchain_core/runnables/base.py+++ b/libs/core/langchain_core/runnables/base.py@@ -534,8 +534,6 @@ class Runnable(Generic[Input, Output], ABC):def get_graph(self, config: Optional[RunnableConfig] = None) -> Graph:"""Return a graph representation of this Runnable."""- from langchain_core.runnables.graph import Graph-graph = Graph()try:input_node = graph.add_node(self.get_input_schema(config))diff --git a/libs/core/langchain_core/utils/pydantic.py b/libs/core/langchain_core/utils/pydantic.pyindex ae403574bb..65f12232f9 100644--- a/libs/core/langchain_core/utils/pydantic.py+++ b/libs/core/langchain_core/utils/pydantic.py@@ -279,7 +279,7 @@ def _create_subset_model_v2(fn_description: Optional[str] = None,) -> type[pydantic.BaseModel]:"""Create a pydantic model with a subset of the model fields."""- from pydantic import ConfigDict, create_model+ from pydantic import create_modelfrom pydantic.fields import FieldInfodescriptions_ = descriptions or {}