-
Notifications
You must be signed in to change notification settings - Fork 130
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
Multiple schemas cannot be compiled #737
Comments
+1 on this. It seems that it complains on the overall state schema containing a field in input state ( const InputStateAnnotation = Annotation.Root({
question: Annotation<string>,
});
const OutputStateAnnotation = Annotation.Root({
answer: Annotation<string>,
});
const OverallStateAnnotation = Annotation.Root({
// somehow this following line has to be commented out to prevent warning
// https://github.com/langchain-ai/langgraphjs/issues/737
question: Annotation<string>,
answer: Annotation<string>,
notes: Annotation<string[]>({
reducer: (state: string[], update: string[]) => state.concat(update),
}),
});
const builder = new StateGraph({
input: InputStateAnnotation,
output: OutputStateAnnotation,
// Saw error on this line
stateSchema: OverallStateAnnotation,
})
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Following the guide here: https://langchain-ai.github.io/langgraphjs/concepts/low_level/#multiple-schemas
While this can be run from LangGraph studio, in VSCode there is an error on this line:
The text was updated successfully, but these errors were encountered: