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

Function buildAgentGraph

packages/server/src/utils/buildAgentGraph.ts:36–409  ·  view source on GitHub ↗
({
    agentflow,
    flowConfig,
    incomingInput,
    nodes,
    edges,
    initializedNodes,
    endingNodeIds,
    startingNodeIds,
    depthQueue,
    chatHistory,
    uploadedFilesContent,
    appDataSource,
    componentNodes,
    sseStreamer,
    shouldStreamResponse,
    cachePool,
    baseURL,
    signal,
    orgId,
    workspaceId
}: {
    agentflow: IChatFlow
    flowConfig: IFlowConfig
    incomingInput: IncomingInput
    nodes: IReactFlowNode[]
    edges: IReactFlowEdge[]
    initializedNodes: IReactFlowNode[]
    endingNodeIds: string[]
    startingNodeIds: string[]
    depthQueue: IDepthQueue
    chatHistory: IMessage[]
    uploadedFilesContent: string
    appDataSource: DataSource
    componentNodes: IComponentNodes
    sseStreamer: IServerSideEventStreamer
    shouldStreamResponse: boolean
    cachePool: CachePool
    baseURL: string
    signal?: AbortController
    orgId: string
    workspaceId?: string
})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

executeFlowFunction · 0.90

Calls 15

clearSessionMemoryFunction · 0.90
getErrorMessageFunction · 0.90
compileMultiAgentsGraphFunction · 0.85
compileSeqAgentsGraphFunction · 0.85
streamStartEventMethod · 0.65
streamNextAgentEventMethod · 0.65
streamTokenEventMethod · 0.65
streamActionEventMethod · 0.65
streamUsedToolsEventMethod · 0.65
streamArtifactsEventMethod · 0.65

Tested by

no test coverage detected