Files
LLMsForDisinformationAnalysis/agent/nodes/produceRanking.ts
T
2026-01-28 22:03:21 +00:00

9 lines
362 B
TypeScript

import { GraphNode } from "@langchain/langgraph";
import { MessagesState } from "../state";
import { AIMessage, HumanMessage } from "@langchain/core/messages";
export const produceRanking: GraphNode<typeof MessagesState> = async (state) => {
//TODO: produce ranking here
return { messages: [ new AIMessage(state.messages?.length.toString() ?? "0")] };
};