@agentek/tools
Version:
Blockchain tools for AI agents
21 lines • 839 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.tallyTools = tallyTools;
const client_js_1 = require("../client.js");
const tools_js_1 = require("./tools.js");
const intents_js_1 = require("./intents.js");
function tallyTools({ tallyApiKey, }) {
if (!tallyApiKey) {
throw new Error("Tally API key is required for using these tools.");
}
return (0, client_js_1.createToolCollection)([
// tools
(0, tools_js_1.createTallyProposalsTool)(tallyApiKey),
(0, tools_js_1.createTallyChainsTool)(tallyApiKey),
(0, tools_js_1.createTallyUserDaosTool)(tallyApiKey),
// intents
(0, intents_js_1.createTallyVoteIntent)(tallyApiKey),
(0, intents_js_1.createTallyVoteWithReasonIntent)(tallyApiKey),
]);
}
//# sourceMappingURL=index.js.map