@agentek/tools
Version:
Blockchain tools for AI agents
18 lines • 540 B
JavaScript
import { createToolCollection } from "../client.js";
import { createMatchSwapTool } from "./intents.js";
/**
* Export an array of tools for Matcha-based swaps.
*/
export function swapTools({ zeroxApiKey, swapFeeRecipient, swapFeeBps, swapFeeToken, }) {
const tools = [];
if (zeroxApiKey) {
tools.push(createMatchSwapTool({
zeroxApiKey,
swapFeeRecipient,
swapFeeBps,
swapFeeToken,
}));
}
return createToolCollection(tools);
}
//# sourceMappingURL=index.js.map