create final nodes

This commit is contained in:
William Jeynes
2026-01-28 22:03:21 +00:00
parent c6416622e4
commit a1373da891
8 changed files with 82 additions and 64 deletions
+9
View File
@@ -0,0 +1,9 @@
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")] };
};