MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / updateFlowState

Function updateFlowState

packages/components/nodes/agentflow/utils.ts:801–807  ·  view source on GitHub ↗
(state: ICommonObject, updateState: IFlowState[])

Source from the content-addressed store, hash-verified

799
800/** Merges new key-value pairs into the flow state. */
801export const updateFlowState = (state: ICommonObject, updateState: IFlowState[]): ICommonObject => {
802 const newFlowState: Record<string, string> = {}
803 for (const s of updateState) {
804 newFlowState[s.key] = s.value
805 }
806 return { ...state, ...newFlowState }
807}
808
809// ─── Private: converting uploads to base64 image content ─────────────────────
810

Callers 7

runMethod · 0.90
runMethod · 0.90
runMethod · 0.90
runMethod · 0.90
runMethod · 0.90
runMethod · 0.90
runMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected