Skip to content
Discussion options

You must be logged in to vote

I solved this issue using langgraph.

python

from langchain_openai import AzureChatOpenAI
from langchain_core.messages import HumanMessage
from langchain_community.vectorstores import FAISS
from langchain_core.globals import set_debug
from langchain_huggingface import HuggingFaceEmbeddings
from langchain.tools.retriever import create_retriever_tool
from utils import img_path2url
from langgraph.checkpoint.memory import MemorySaver  # an in-memory checkpointer
from langchain_core.tools import tool

# https://python.langchain.com/docs/how_to/migrate_agent/

# set_debug(True)
model = AzureChatOpenAI(
    azure_deployment="gpt-4o", api_version="2024-02-15-preview", temperature=0
)


@tool
def …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@sbugdary
Comment options

@dosubot
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by sbugdary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant