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) 969 B
import { z } from "zod"; import { BaseHederaTransactionTool } from "./index19.js"; const DissociateTokensZodSchemaCore = z.object({ accountId: z.string().describe('The account ID to dissociate tokens from (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 dissociate.") }); class HederaDissociateTokensTool extends BaseHederaTransactionTool { constructor(params) { super(params); this.name = "hedera-hts-dissociate-tokens"; this.description = "Dissociates one or more Hedera tokens from an account."; this.specificInputSchema = DissociateTokensZodSchemaCore; this.namespace = "hts"; } getServiceBuilder() { return this.hederaKit.hts(); } async callBuilderMethod(builder, specificArgs) { await builder.dissociateTokens( specificArgs ); } } export { HederaDissociateTokensTool }; //# sourceMappingURL=index37.js.map