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:
@@ -0,0 +1,16 @@
|
||||
import { ConditionalEdgeRouter, END } from "@langchain/langgraph";
|
||||
import { MessagesState } from "../state";
|
||||
|
||||
|
||||
export const loopEndConditional: ConditionalEdgeRouter<typeof MessagesState, String> = (state) => {
|
||||
const triggerEvents = state.proposedTriggerEvent;
|
||||
const triggerEventsIndex = state.proposedTriggerEventIndex;
|
||||
|
||||
if (triggerEventsIndex == triggerEvents.length-1) {
|
||||
return END
|
||||
}
|
||||
else {
|
||||
return "verificationSetup"
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user