Packaged Tools ​
Below is a list of tools included in this package that you can use in your agent.
Serper Tool ​
The Serper tool allows your agent to perform Google searches.
Add your Serper API key to your .env
file: You can get an API key by signing up here: Serper API
SERPER_API_KEY=
Then, include the SerperTool
in your agent:
use UseTheFork\Synapse\Tools\SerperTool;
protected function resolveTools(): array
{
return [new SerperTool];
}
SERP API Tool ​
The SERP API tool enables your agent to search Google and Google News, depending on the tool you choose.
Add your SERP API key to your .env
file: You can get an API key by signing up here: SERP API
SERPAPI_API_KEY=
Then, include either the SerpAPIGoogleSearchTool
or the SerpAPIGoogleNewsTool
in your agent:
use UseTheFork\Synapse\Tools\SerpAPIGoogleNewsTool;
use UseTheFork\Synapse\Tools\SerpAPIGoogleSearchTool;
protected function resolveTools(): array
{
return [
new SerpAPIGoogleSearchTool,
new SerpAPIGoogleNewsTool,
];
}
Firecrawl Tool ​
The Firecrawl tool enables your agent to scrape the content of a webpage using its full URL.
Add your Firecrawl API key to your .env
file: You can get an API key by signing up here: Firecrawl
FIRECRAWL_API_KEY=
Then, include the FirecrawlTool
in your agent:
use UseTheFork\Synapse\Tools\FirecrawlTool;
protected function resolveTools(): array
{
return [new FirecrawlTool];
}
Crunchbase Tool ​
The Crunchbase tool allows your agent to gather information about a company on Crunchbase using an entityID
.
Add your Crunchbase API key to your .env
file: You can get an API key by signing up here: Crunchbase API
CRUNCHBASE_API_KEY=
Then, include the CrunchbaseTool
in your agent:
use UseTheFork\Synapse\Tools\CrunchbaseTool;
protected function resolveTools(): array
{
return [new CrunchbaseTool];
}
Clearbit Company Tool ​
The Clearbit Company tool allows your agent to gather information about a company on Clearbit using its domain name.
Add your Clearbit API key to your .env
file: You can get an API key by signing up here: Clearbit
CLEARBIT_API_KEY=
Then, include the ClearbitCompanyTool
in your agent:
use UseTheFork\Synapse\Tools\ClearbitCompanyTool;
protected function resolveTools(): array
{
return [new ClearbitCompanyTool];
}
SQL Database Tool ​
The SQL Database toolset allows the agent to browse and answer questions based on the database your Laravel application is running. This toolset is adapted from the LangChain SQL Database tool: LangChain SQL Database Tool.
There are three tools your agent can use:
InfoSQLDatabaseTool
: Retrieves the schema and sample rows from specified SQL tables usingSchema::getColumns($table)
andDB::select("SELECT * FROM {$table} LIMIT 3")
.ListSQLDatabaseTool
: Lists the table names in your database usingSchema::getTables()
.QuerySQLDataBaseTool
: Executes a select query against the database usingDB::select($query)
.
Typically, you would include all three tools in your agent:
use UseTheFork\Synapse\Tools\SQL\InfoSQLDatabaseTool;
use UseTheFork\Synapse\Tools\SQL\ListSQLDatabaseTool;
use UseTheFork\Synapse\Tools\SQL\QuerySQLDataBaseTool;
protected function resolveTools(): array
{
return [
new InfoSQLDatabaseTool,
new ListSQLDatabaseTool,
new QuerySQLDataBaseTool,
];
}