RemoteRunnable is deprecated. What is the alternative?

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]
	})

Hey Juan,

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.

Thanks for the info @nhuang !