Creating tools from different sources in Agency Swarm.
ToolFactory
class allows you to create tools from different sources, such as Langchain tools or OpenAPI schemas. However, implementing tools from scratch using BaseTool
provides greater control and is generally recommended.
Import from Langchain (Not Recommended)
Convert from OpenAPI Schemas
ToolFactory
, you can streamline the process of integrating external tools into your agents. This feature allows for flexibility and rapid development, although creating tools directly with BaseTool
is often preferable for more control and customization.
BaseTool
for greater control.