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.

33 lines (32 loc) 1.12 kB
import { z } from "zod"; import { BaseHederaTransactionTool } from "./index19.js"; const DeleteContractZodSchemaCore = z.object({ contractId: z.string().describe('The ID of the contract to delete (e.g., "0.0.xxxx").'), transferAccountId: z.string().optional().describe( "Optional. Account ID to transfer balance to. Builder validates if needed." ), transferContractId: z.string().optional().describe( "Optional. Contract ID to transfer balance to. Builder validates if needed." ) }); class HederaDeleteContractTool extends BaseHederaTransactionTool { constructor(params) { super(params); this.name = "hedera-scs-delete-contract"; this.description = "Deletes a smart contract. Optionally specify a transfer target for any remaining balance."; this.specificInputSchema = DeleteContractZodSchemaCore; this.namespace = "scs"; } getServiceBuilder() { return this.hederaKit.scs(); } async callBuilderMethod(builder, specificArgs) { await builder.deleteContract( specificArgs ); } } export { HederaDeleteContractTool }; //# sourceMappingURL=index74.js.map