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?
const remoteChain = new RemoteRunnable({
url: ExternalURLs.agent,
options: {
timeout: timeout,
headers: headers,
},
});
const response = await remoteChain.invoke({
messages: [messageText]
})