Refactor example retreiving, add option for dynamic data. Add hybrid reranking to tooling. Add parsing and loop infrastructure for trigger event processing

This commit is contained in:
William Jeynes
2026-02-12 14:33:12 +00:00
parent 06a302ec36
commit bef856d53a
9 changed files with 376 additions and 89 deletions
+15 -3
View File
@@ -10,8 +10,20 @@ import {
} from "@langchain/langgraph";
import { z } from "zod/v4";
export const ProposedTriggerEvent = z.object({
Event: z.string(),
ReasoningWhyRelevant: z.string(),
SearchQuery: z.string(),
Url: z.url(),
IsItselfDisinformation: z.boolean()
})
export const ProposedTriggerEventArray = z.array(ProposedTriggerEvent);
export const MessagesState = new StateSchema({
disinformationTitle: z.string(),
messages: MessagesValue,
// normalizationContext: z.map(z.string(), z.string()),
disinformationTitle: z.string()
});
proposedTriggerEvent: ProposedTriggerEventArray,
proposedTriggerEventIndex: z.int(),
});