@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.
27 lines (26 loc) • 771 B
JavaScript
import { z } from "zod";
import { BaseHederaTransactionTool } from "./index19.js";
const DeleteTopicZodSchemaCore = z.object({
topicId: z.string().describe('The ID of the topic to be deleted (e.g., "0.0.xxxx").')
});
class HederaDeleteTopicTool extends BaseHederaTransactionTool {
constructor(params) {
super(params);
this.name = "hedera-hcs-delete-topic";
this.description = "Deletes an HCS topic. Requires topicId.";
this.specificInputSchema = DeleteTopicZodSchemaCore;
this.namespace = "hcs";
}
getServiceBuilder() {
return this.hederaKit.hcs();
}
async callBuilderMethod(builder, specificArgs) {
await builder.deleteTopic(
specificArgs
);
}
}
export {
HederaDeleteTopicTool
};
//# sourceMappingURL=index22.js.map