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.

30 lines (29 loc) 953 B
import { z } from "zod"; import { BaseHederaTransactionTool } from "./index19.js"; const BurnFTZodSchemaCore = z.object({ tokenId: z.string().describe('The ID of the fungible token (e.g., "0.0.xxxx").'), amount: z.union([z.number(), z.string()]).describe( "Amount to burn (smallest unit). Number or string for large values. Builder handles conversion." ) }); class HederaBurnFungibleTokenTool extends BaseHederaTransactionTool { constructor(params) { super(params); this.name = "hedera-hts-burn-fungible-token"; this.description = "Burns fungible tokens. Requires tokenId and amount."; this.specificInputSchema = BurnFTZodSchemaCore; this.namespace = "hts"; } getServiceBuilder() { return this.hederaKit.hts(); } async callBuilderMethod(builder, specificArgs) { await builder.burnFungibleToken( specificArgs ); } } export { HederaBurnFungibleTokenTool }; //# sourceMappingURL=index49.js.map