Tool as Agent
This pattern is the opposite of Agent as Tool pattern.
An agent usually interacts with an LLM to finish a task. However, a tool usually doesn't require interactions with an LLM. For agents, we can use all these agentic patterns to organize them. An existing tool can be converted as an agent to be used in these agentic patterns.
Implementation
A tool can be easily converted into an agent, as they are functionally compatible. Both of them take an input and produce an output. We can create an agent by wrapping a tool.