Agentic tools
Agentic (GitHub) is a standard library of AI functions / tools which are optimized for both normal TS-usage as well as LLM-based usage. You can register any agentic tool in your script using defTool.
The full list of agentic tools can be found at https://agentic.so/tools/. Among others, you will find tools for:
- Bing
- Calculator
- Clearbit
- Dexa
- Diffbot
- E2b
- Exa
- Firecrawl
- Hacker news
- Hunter
- Jina
- Midjourney
- Novu
- People data labs
- Perigon
- Polygon
- Predict leads
- Proxycurl
- Searxng
- Serpapi
- Serper
- Slack
- Social data
- Tavily
- Twilio
- Weather
- Wikidata
- Wikipedia
- Wolfram alpha
Using a tool
We will use the calculator tool as it does not require any secret.
Find the tool documentation page (https://agentic.so/tools/calculator) and install the dependencies.
Configure the required environment variables in your
.env
file. In this case, the calculator tool does not require any secret but most do.Import the tool function and register it with
defTool
.or in a subrompt
That’s it! The agentic function have all the necessary metadata to register the function with the LLM and execute it.
Weather example
The weather tool uses the https://www.weatherapi.com/ APIs.
Install the
@agentic/weather
package.Configure the
WEATHER_API_KEY
environment variables in your.env
file.Import the client type, create an instance and register it with
defTool
.