feat: added an inferred belief node to the editor

This commit is contained in:
Gerla, J. (Justin)
2026-01-23 12:57:34 +00:00
committed by Twirre
parent 6f4471ce6f
commit 47c5e94b8f
17 changed files with 847 additions and 30 deletions

View File

@@ -107,4 +107,16 @@ export function useHandleRules(
// finally we return a function that evaluates all rules using the created context
return evaluateRules(targetRules, connection, context);
};
}
export function validateConnectionWithRules(
connection: Connection,
context: ConnectionContext
): RuleResult {
const rules = useFlowStore.getState().getTargetRules(
connection.target!,
connection.targetHandle!
);
return evaluateRules(rules,connection, context);
}