Refactor calculating score. Add sort node for vanity

This commit is contained in:
William Jeynes
2026-02-12 23:46:00 +00:00
parent b06c08daab
commit 7fe63d6a98
6 changed files with 56 additions and 30 deletions
+1 -7
View File
@@ -1,12 +1,6 @@
import {
StateGraph,
StateSchema,
MessagesValue,
ReducedValue,
GraphNode,
ConditionalEdgeRouter,
START,
END,
} from "@langchain/langgraph";
import { z } from "zod/v4";
@@ -17,7 +11,7 @@ export const ProposedTriggerEvent = z.object({
Url: z.url(),
IsItselfDisinformation: z.boolean(),
context: z.string().optional(),
score: z.number().optional
score: z.number().optional()
})
export const ProposedTriggerEventArray = z.array(ProposedTriggerEvent);