import { Exfunc } from "exfunc";
const exfunc = new Exfunc();
const result = await exfunc.yelp.searchBusinesses({
query: "wonton noodle soup",
location: "San Francisco",
});
console.log(result);
How to use
You can either send an API request directly or let your AI agent call it via function calling.
You can integrate Exfunc into your AI agent with a few lines of code using our toolkit.
import {generateText} from 'ai';
import {openai} from '@ai-sdk/openai';
import {ExfuncAgentToolkit} from '@exfunc/agent-toolkit/ai-sdk';
const exfuncAgentToolkit = new ExfuncAgentToolkit();
(async () => {
const result = await generateText({
model: openai('gpt-4o-mini'),
tools: {
...exfuncAgentToolkit.getTools(),
},
maxSteps: 5,
prompt: 'what did dalton caldwell say recently on twitter?',
});
console.log(result.text);
})();
Pricing
Flexible plans for every team.
Free
For individuals and small projects.
Free/month
- 100 credits
- 10 requests per minute
- Community support
- Free forever
Enterprise
For large organizations.
Custom/month
- Custom plans
- Flexible service limits
- Dedicated account manager
- 24/7 phone support