How do you connect the three tools to the agent in Langflow, and what is the purpose of the Toolset port?
In Langflow, you connect tools to the agent by first turning each component into a tool using its Tool Mode selector, then dragging the component near the agent and linking its tool output to the agent's dark cyan Toolset input port. The Toolset port is how the agent receives the descriptions and capabilities of all available tools, forming the toolset it can call during its reasoning loop.
The evidence describes the Agent component with a dark cyan input port on its left side. This port represents tools and is called the Toolset port. To connect tools, you start with components that implement a tool, such as the Calculator component. Initially, the Calculator is not a tool; it has no dark cyan output port, so it cannot connect to the agent. You must click the Tool Mode selector that appears when you select the component. Doing this "toolifies" it, changing its appearance and giving it the appropriate tool output. Once toolified, the component can be placed near the agent and connected to the agent's Toolset input port. The purpose of this port is to equip the agent with one or more tools that form its toolset, allowing the LLM inside the agent to see the available capabilities and invoke them as needed.
Key points
- The agent has a dark cyan input port that represents its toolset.
- Regular components must be turned into tools using Tool Mode before they can connect.
- After Tool Mode is enabled, the component gains the proper tool output.
- You connect the toolified component's output to the agent's Toolset port.
- The Toolset port lets the agent receive one or more tools and use them in its reasoning loop.
AI Agents and Applications
Andrea De Mauro
MEAP Edition Version 7 · Manning Publications