UNPKG

@hashgraphonline/standards-agent-kit

Version:

A modular SDK for building on-chain autonomous agents using Hashgraph Online Standards, including HCS-10 for agent discovery and communication. https://hol.org

34 lines (33 loc) 972 B
import { BasePlugin, HederaGetHbarPriceTool } from "hedera-agent-kit"; import { HederaGetHbarPriceTool as HederaGetHbarPriceTool2 } from "hedera-agent-kit"; class HbarPricePlugin extends BasePlugin { constructor() { super(...arguments); this.id = "hedera-hbar-price"; this.name = "Hedera HBAR Price Plugin"; this.description = "Provides tools to interact with Hedera network data, specifically HBAR price."; this.version = "1.0.0"; this.author = "Hashgraph Online"; this.tools = []; } async initialize(context) { await super.initialize(context); this.initializeTools(); } initializeTools() { this.tools = [ new HederaGetHbarPriceTool({ hederaKit: this.context.config.hederaKit, logger: this.context.logger }) ]; } getTools() { return this.tools; } } export { HederaGetHbarPriceTool2 as GetHbarPriceTool, HbarPricePlugin }; //# sourceMappingURL=standards-agent-kit.es43.js.map