mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-22 14:49:29 +00:00
core[patch]: remove redundant imports (#28861)
`Graph` has been imported at Line: 62
This commit is contained in:
parent
8d9907088b
commit
e5c9da3eb6
@ -534,8 +534,6 @@ class Runnable(Generic[Input, Output], ABC):
|
|||||||
|
|
||||||
def get_graph(self, config: Optional[RunnableConfig] = None) -> Graph:
|
def get_graph(self, config: Optional[RunnableConfig] = None) -> Graph:
|
||||||
"""Return a graph representation of this Runnable."""
|
"""Return a graph representation of this Runnable."""
|
||||||
from langchain_core.runnables.graph import Graph
|
|
||||||
|
|
||||||
graph = Graph()
|
graph = Graph()
|
||||||
try:
|
try:
|
||||||
input_node = graph.add_node(self.get_input_schema(config))
|
input_node = graph.add_node(self.get_input_schema(config))
|
||||||
|
@ -279,7 +279,7 @@ def _create_subset_model_v2(
|
|||||||
fn_description: Optional[str] = None,
|
fn_description: Optional[str] = None,
|
||||||
) -> type[pydantic.BaseModel]:
|
) -> type[pydantic.BaseModel]:
|
||||||
"""Create a pydantic model with a subset of the model fields."""
|
"""Create a pydantic model with a subset of the model fields."""
|
||||||
from pydantic import ConfigDict, create_model
|
from pydantic import create_model
|
||||||
from pydantic.fields import FieldInfo
|
from pydantic.fields import FieldInfo
|
||||||
|
|
||||||
descriptions_ = descriptions or {}
|
descriptions_ = descriptions or {}
|
||||||
|
Loading…
Reference in New Issue
Block a user