Files
LLMsForDisinformationAnalysis/agent/nodes/verificationSetup.ts
T
2026-01-28 21:26:34 +00:00

9 lines
395 B
TypeScript

import { GraphNode } from "@langchain/langgraph";
import { MessagesState } from "../state";
import { HumanMessage } from "@langchain/core/messages";
export const verificationSetup: GraphNode<typeof MessagesState> = async (state) => {
//TODO: this might not be needed, looks nice on the graph tho
return { messages: [ new HumanMessage(state.messages.at(-1)?.content ?? "undefined")] };
};