17 lines
354 B
TypeScript
17 lines
354 B
TypeScript
import {
|
|
StateGraph,
|
|
StateSchema,
|
|
MessagesValue,
|
|
ReducedValue,
|
|
GraphNode,
|
|
ConditionalEdgeRouter,
|
|
START,
|
|
END,
|
|
} from "@langchain/langgraph";
|
|
import { z } from "zod/v4";
|
|
|
|
export const MessagesState = new StateSchema({
|
|
messages: MessagesValue,
|
|
// normalizationContext: z.map(z.string(), z.string()),
|
|
disinformationTitle: z.string()
|
|
}); |