(agent: ISeqAgentNode, toolNodeInstance: ISeqAgentNode)
| 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)) { |
no outgoing calls
no test coverage detected