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

Function parseFormStringToJson

packages/server/src/utils/buildAgentflow.ts:1524–1536  ·  view source on GitHub ↗
(formString: string)

Source from the content-addressed store, hash-verified

1522}
1523
1524const parseFormStringToJson = (formString: string): Record<string, string> => {
1525 const result: Record<string, string> = {}
1526 const lines = formString.split('\n')
1527
1528 for (const line of lines) {
1529 const [key, value] = line.split(': ').map((part) => part.trim())
1530 if (key && value) {
1531 result[key] = value
1532 }
1533 }
1534
1535 return result
1536}
1537
1538/*
1539 * Function to traverse the flow graph and execute the nodes

Callers 1

executeAgentFlowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected