Add capability: pass AbortSignal to RemoteRunnable #5797
sevgicansalih
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checked
Feature request
RemoteRunnable should be able to get cancelled upon the request of user or system. Either it should take signal parameter together with
timeout
option. Alternatively it should be able to bindsignal
parameter with bind function.RemoteRunnable's only signal is here: Check Line 277, "post" function
Motivation
RemoteRunnable should be able to get cancelled upon the request of user or system. When it is used with
streamEvents
function, there is no way for client side to cancel the request and stop the stream.bind
function is not working as well whensignal
parameter is passed.Proposal (If applicable)
Two possible solutions:
signal
param where it will be used in thepost
requests of RemoteRunnable class(https://github.com/langchain-ai/langchainjs/blob/main/langchain-core/src/runnables/remote.ts)Beta Was this translation helpful? Give feedback.
All reactions