mirror of
https://github.com/langchain-ai/langserve.git
synced 2026-07-16 09:34:30 -04:00
How do I use create_react_agent in langServe? #231
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Jimmy-L99 on GitHub (Sep 12, 2024).
Server test code as follows:
Client test code as follows:
Server error:
Q:
If I use
create_react_agent, always have some error, but it will work if I useConversationalRetrievalChaininadd_routes. How should I fix it if I want to usecreate_react_agent?@eyurtsev commented on GitHub (Sep 12, 2024):
https://github.com/langchain-ai/langserve?tab=readme-ov-file#%EF%B8%8F-langgraph-compatibility
@Jimmy-L99 commented on GitHub (Sep 12, 2024):
@eyurtsev Thank you for your answer, I saw something about agent from the example, but most of them did not talk about
create_retriever_tooland thecreate_react_agentoflanggraph.prebuilt,I still couldn't get an answer with the agent tool according to my code, I would appreciate it if you could give me more specific examples! TvT