I have an app that is still using Langserve. In the client (js), we use a RemoteRunnable to call a runnable in the backend (python). However, RemoteRunnable is deprecated and the docs just says to update to the LangGraph platform. However, since it would be less than optimal to move everything over at this point, what is the best alternative/easiest/suggested way to replace RemoteRunnable? Just convert the end point to a plain FastApi endpoint and do an http call in the frontend? Something else within the LangChain ecosystem?
It’s marked as deprecated because we deprecated LangServe. It’s not in active development and might be removed at some point in the future (but not soon).
If you want to keep using RemoteRunnable, you can copy over the source code and just use it!
Your approach of setting up a FastAPI server also works.
langServe is the preferred deployment platform for langgraph agents, why is it being deprecated?
what is the best runtime we should pick for langraph agents deployed on langserve?
my question is regarding this docs
LangServe has been deprecated for a long time and was designed for deploying LCEL chains rather than langgraph agents – langsreve was created long before langgraph existed. We also deprecated it a long time and we have a much much better option for deploying langgraph agents!