You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use createSupervisor from @langchain/langgraph-supervisor in a web browser environment, but it fails because getCurrentTaskInput relies on async_hooks, which is not supported in browsers (as noted in the docs: "It also requires async_hooks support, which is supported in many popular JavaScript environments... but not all of them (mainly web browsers)").
Is there a version or workaround for createSupervisor that works in web browsers? If not, are there plans to add browser-compatible support in the future? I’d love to use this functionality in a browser-based application.
@GeekMubai Please refrain from writing comments that don't help us to understand the issue in some way.
We're aware of this issue and looking into ways that we might support it, but at the moment langgraph-supervisor requires an execution environment that supports AsyncLocalStorage.
I'm trying to use
createSupervisor
from@langchain/langgraph-supervisor
in a web browser environment, but it fails becausegetCurrentTaskInput
relies onasync_hooks
, which is not supported in browsers (as noted in the docs: "It also requires async_hooks support, which is supported in many popular JavaScript environments... but not all of them (mainly web browsers)").Environment
"@langchain/core": "^0.3.42",
"@langchain/langgraph": "^0.2.54",
"@langchain/langgraph-checkpoint": "^0.0.15",
"@langchain/langgraph-supervisor": "^0.0.9",
"@langchain/openai": "^0.4.4",
Question
Is there a version or workaround for
createSupervisor
that works in web browsers? If not, are there plans to add browser-compatible support in the future? I’d love to use this functionality in a browser-based application.Reference
LangGraph docs: getCurrentTaskInput compatibility
The text was updated successfully, but these errors were encountered: