Skip to content

Commit

Permalink
Merge pull request #356 from langchain-ai/nc/31jul/langgraph-compat
Browse files Browse the repository at this point in the history
Compat with future langgraph version
  • Loading branch information
nfcampos authored Jul 31, 2024
2 parents 9432c0b + 991802f commit 541ae6f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion backend/app/agent_types/tools_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
SystemMessage,
ToolMessage,
)
from langgraph.checkpoint import BaseCheckpointSaver
from langgraph.checkpoint.base import BaseCheckpointSaver
from langgraph.graph import END
from langgraph.graph.message import MessageGraph
from langgraph.prebuilt import ToolExecutor, ToolInvocation
Expand Down
2 changes: 1 addition & 1 deletion backend/app/agent_types/xml_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
HumanMessage,
SystemMessage,
)
from langgraph.checkpoint import BaseCheckpointSaver
from langgraph.checkpoint.base import BaseCheckpointSaver
from langgraph.graph import END
from langgraph.graph.message import MessageGraph
from langgraph.prebuilt import ToolExecutor, ToolInvocation
Expand Down
2 changes: 1 addition & 1 deletion backend/app/chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from langchain_core.language_models.base import LanguageModelLike
from langchain_core.messages import BaseMessage, SystemMessage
from langgraph.checkpoint import BaseCheckpointSaver
from langgraph.checkpoint.base import BaseCheckpointSaver
from langgraph.graph.state import StateGraph

from app.message_types import add_messages_liberal
Expand Down
2 changes: 1 addition & 1 deletion backend/app/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from langchain_core.messages import BaseMessage
from langchain_core.runnables import ConfigurableFieldSpec, RunnableConfig
from langgraph.checkpoint import BaseCheckpointSaver
from langgraph.checkpoint.base import BaseCheckpointSaver
from langgraph.checkpoint.base import (
Checkpoint,
CheckpointAt,
Expand Down
2 changes: 1 addition & 1 deletion backend/app/retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from langchain_core.prompts import PromptTemplate
from langchain_core.retrievers import BaseRetriever
from langchain_core.runnables import chain
from langgraph.checkpoint import BaseCheckpointSaver
from langgraph.checkpoint.base import BaseCheckpointSaver
from langgraph.graph import END
from langgraph.graph.state import StateGraph

Expand Down
2 changes: 1 addition & 1 deletion tools/redis_to_postgres/migrate_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import orjson
from langchain.utilities.redis import get_client
from langchain_core.runnables import ConfigurableFieldSpec, RunnableConfig
from langgraph.checkpoint import BaseCheckpointSaver
from langgraph.checkpoint.base import BaseCheckpointSaver
from langgraph.checkpoint.base import (
Checkpoint,
empty_checkpoint,
Expand Down

0 comments on commit 541ae6f

Please sign in to comment.