-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi agent supervisor examples seem to have a type error #739
Comments
Hey @gpembark! Can you share your |
Hey @jacoblee93, thank you. Here's my package.json, and btw this made it work:
And here is the package.json:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I'm trying to follow the examples in the documentation to create a multi agent supervisor, either this one:
https://langchain-ai.github.io/langgraphjs/tutorials/multi_agent/agent_supervisor/#create-agent-supervisor
Or the more recent one:
https://github.com/langchain-ai/langgraphjs/blob/main/examples/multi_agent/agent_supervisor.ipynb?ref=blog.langchain.dev
In both cases I'm getting a type error when trying to add the supervisorChain as a node.
Argument of type 'Runnable<InputValues<string>, Record<string, any> | undefined, RunnableConfig<Record<string, any>>>' is not assignable to parameter of type 'RunnableLike<InputValues<string>, UpdateType<{ messages: BinaryOperatorAggregate<BaseMessage[], BaseMessage[]>; next: BinaryOperatorAggregate<string, string>; }> & Record<...>, LangGraphRunnableConfig<...>>'. Type 'Runnable<InputValues<string>, Record<string, any> | undefined, RunnableConfig<Record<string, any>>>' is not assignable to type 'RunnableMapLike<InputValues<string>, UpdateType<{ messages: BinaryOperatorAggregate<BaseMessage[], BaseMessage[]>; next: BinaryOperatorAggregate<string, string>; }> & Record<...>>'. Index signature for type 'string' is missing in type 'Runnable<InputValues<string>, Record<string, any> | undefined, RunnableConfig<Record<string, any>>>'
I'm sorry if I'm doing something wrong on my end, but this is beyond my understanding of the inner workings of LangGraph.
Any help (or updates to the documentation) would be appreciated.
The text was updated successfully, but these errors were encountered: