MCPcopy
hub / github.com/FlowiseAI/Flowise / checkInputs

Function checkInputs

packages/components/nodes/moderation/Moderation.ts:7–12  ·  view source on GitHub ↗
(inputModerations: Moderation[], input: string)

Source from the content-addressed store, hash-verified

5}
6
7export const checkInputs = async (inputModerations: Moderation[], input: string): Promise<string> => {
8 for (const moderation of inputModerations) {
9 input = await moderation.checkForViolations(input)
10 }
11 return input
12}
13
14// is this the correct location for this function?
15// should we have a utils files that all node components can use?

Callers 15

runMethod · 0.90
runPredictionFunction · 0.90
runMethod · 0.90
runMethod · 0.90
runMethod · 0.90
runMethod · 0.90
runMethod · 0.90
runMethod · 0.90
runMethod · 0.90
runMethod · 0.90
runMethod · 0.90
runMethod · 0.90

Calls 1

checkForViolationsMethod · 0.45

Tested by

no test coverage detected