UNPKG

@hashgraphonline/hedera-agent-kit

Version:

Build LLM-powered applications that interact with the Hedera Network. Create conversational agents that can understand user requests in natural language and execute Hedera transactions, or build backend systems that leverage AI for on-chain operations.

28 lines (27 loc) 960 B
import { z } from "zod"; import { BaseHederaTransactionTool } from "./index19.js"; const AssociateTokensZodSchemaCore = z.object({ accountId: z.string().describe('The account ID to associate tokens with (e.g., "0.0.xxxx").'), tokenIds: z.array(z.string().describe('A token ID (e.g., "0.0.yyyy").')).min(1).describe("An array of one or more token IDs to associate.") }); class HederaAssociateTokensTool extends BaseHederaTransactionTool { constructor(params) { super(params); this.name = "hedera-hts-associate-tokens"; this.description = "Associates one or more Hedera tokens with an account."; this.specificInputSchema = AssociateTokensZodSchemaCore; this.namespace = "hts"; } getServiceBuilder() { return this.hederaKit.hts(); } async callBuilderMethod(builder, specificArgs) { await builder.associateTokens( specificArgs ); } } export { HederaAssociateTokensTool }; //# sourceMappingURL=index29.js.map