@agentek/tools
Version:
Blockchain tools for AI agents
18 lines • 747 B
JavaScript
import { createToolCollection } from "../client.js";
import { createTallyProposalsTool, createTallyChainsTool, createTallyUserDaosTool, } from "./tools.js";
import { createTallyVoteIntent, createTallyVoteWithReasonIntent, } from "./intents.js";
export function tallyTools({ tallyApiKey, }) {
if (!tallyApiKey) {
throw new Error("Tally API key is required for using these tools.");
}
return createToolCollection([
// tools
createTallyProposalsTool(tallyApiKey),
createTallyChainsTool(tallyApiKey),
createTallyUserDaosTool(tallyApiKey),
// intents
createTallyVoteIntent(tallyApiKey),
createTallyVoteWithReasonIntent(tallyApiKey),
]);
}
//# sourceMappingURL=index.js.map