MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / createBindModel

Function createBindModel

packages/server/src/utils/buildAgentGraph.ts:829–832  ·  view source on GitHub ↗
(agent: ISeqAgentNode, toolNodeInstance: ISeqAgentNode)

Source from the content-addressed store, hash-verified

827
828 /*** This is to bind the tools to the model of LLMNode, when the LLMNode is predecessor/successor of ToolNode ***/
829 const createBindModel = (agent: ISeqAgentNode, toolNodeInstance: ISeqAgentNode) => {
830 const tools = flatten(toolNodeInstance.node?.tools)
831 bindModel[agent.id] = agent.llm.bindTools(tools)
832 }
833
834 /*** Start processing every Agent nodes ***/
835 for (const agentNodeId of getSortedDepthNodes(depthQueue)) {

Callers 1

compileSeqAgentsGraphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected