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.

75 lines (73 loc) 5.63 kB
import { StructuredTool } from '@langchain/core/tools'; import { default as HederaAgentKit } from '../agent/agent'; import { PrivateKey } from '@hashgraph/sdk'; import { ModelCapability } from '../types/model-capability'; /** * @description Creates and aggregates all available Hedera LangChain tools. * This function is intended to be called by HederaAgentKit during its initialization. * @param {HederaAgentKit} hederaKit - The initialized HederaAgentKit instance. * @param {string} operatorId - The operator account ID. * @param {PrivateKey} operatorKey - The operator private key. * @param {ModelCapability} modelCapability - The model capability for response processing. * @returns {Tool[]} An array of LangChain Tool instances. */ export declare function createHederaTools(hederaKit: HederaAgentKit, operatorId?: string, operatorKey?: PrivateKey, modelCapability?: ModelCapability): Promise<StructuredTool[]>; export { BaseHederaTransactionTool } from './tools/common/base-hedera-transaction-tool'; export { BaseHederaQueryTool } from './tools/common/base-hedera-query-tool'; export { HederaCreateTopicTool } from './tools/hcs/create-topic-tool'; export { HederaDeleteTopicTool } from './tools/hcs/delete-topic-tool'; export { HederaSubmitMessageTool } from './tools/hcs/submit-message-tool'; export { HederaUpdateTopicTool } from './tools/hcs/update-topic-tool'; export { HederaGetTopicInfoTool } from './tools/hcs/get-topic-info-tool'; export { HederaGetTopicFeesTool } from './tools/hcs/get-topic-fees-tool'; export { HederaGetTopicMessages } from './tools/hcs/get-topic-messages-tool'; export { HederaAirdropTokenTool } from './tools/hts/airdrop-token-tool'; export { HederaAssociateTokensTool } from './tools/hts/associate-tokens-tool'; export { HederaClaimAirdropTool } from './tools/hts/claim-airdrop-tool'; export { HederaCreateFungibleTokenTool } from './tools/hts/create-fungible-token-tool'; export { HederaCreateNftTool } from './tools/hts/create-nft-tool'; export { HederaMintFungibleTokenTool } from './tools/hts/mint-fungible-token-tool'; export { HederaMintNftTool } from './tools/hts/mint-nft-tool'; export { HederaRejectTokensTool } from './tools/hts/reject-tokens-tool'; export { HederaTransferTokensTool } from './tools/hts/transfer-tokens-tool'; export { HederaDissociateTokensTool } from './tools/hts/dissociate-tokens-tool'; export { HederaUpdateTokenTool } from './tools/hts/update-token-tool'; export { HederaDeleteTokenTool } from './tools/hts/delete-token-tool'; export { HederaPauseTokenTool } from './tools/hts/pause-token-tool'; export { HederaUnpauseTokenTool } from './tools/hts/unpause-token-tool'; export { HederaFreezeTokenAccountTool } from './tools/hts/freeze-token-account-tool'; export { HederaUnfreezeTokenAccountTool } from './tools/hts/unfreeze-token-account-tool'; export { HederaGrantKycTokenTool } from './tools/hts/grant-kyc-token-tool'; export { HederaRevokeKycTokenTool } from './tools/hts/revoke-kyc-token-tool'; export { HederaWipeTokenAccountTool } from './tools/hts/wipe-token-account-tool'; export { HederaTokenFeeScheduleUpdateTool } from './tools/hts/token-fee-schedule-update-tool'; export { HederaTransferNftTool } from './tools/hts/transfer-nft-tool'; export { HederaBurnFungibleTokenTool } from './tools/hts/burn-fungible-token-tool'; export { HederaBurnNftTool } from './tools/hts/burn-nft-tool'; export { HederaGetTokenInfoTool } from './tools/hts/get-token-info-tool'; export { HederaValidateNftOwnershipTool } from './tools/hts/validate-nft-ownership-tool'; export { HederaApproveFungibleTokenAllowanceTool } from './tools/account/approve-fungible-token-allowance-tool'; export { HederaApproveHbarAllowanceTool } from './tools/account/approve-hbar-allowance-tool'; export { HederaApproveTokenNftAllowanceTool } from './tools/account/approve-token-nft-allowance-tool'; export { HederaCreateAccountTool } from './tools/account/create-account-tool'; export { HederaDeleteAccountTool } from './tools/account/delete-account-tool'; export { HederaUpdateAccountTool } from './tools/account/update-account-tool'; export { HederaTransferHbarTool } from './tools/account/transfer-hbar-tool'; export { HederaRevokeHbarAllowanceTool } from './tools/account/revoke-hbar-allowance-tool'; export { HederaRevokeFungibleTokenAllowanceTool } from './tools/account/revoke-fungible-token-allowance-tool'; export { HederaGetAccountBalanceTool } from './tools/account/get-account-balance-tool'; export { HederaGetAccountPublicKeyTool } from './tools/account/get-account-public-key-tool'; export { HederaGetAccountInfoTool } from './tools/account/get-account-info-tool'; export { HederaGetAccountTokensTool } from './tools/account/get-account-tokens-tool'; export { HederaGetAccountNftsTool } from './tools/account/get-account-nfts-tool'; export { HederaCreateFileTool } from './tools/file/create-file-tool'; export { HederaAppendFileTool } from './tools/file/append-file-tool'; export { HederaUpdateFileTool } from './tools/file/update-file-tool'; export { HederaDeleteFileTool } from './tools/file/delete-file-tool'; export { HederaGetFileContentsTool } from './tools/file/get-file-contents-tool'; export { HederaCreateContractTool } from './tools/scs/create-contract-tool'; export { HederaUpdateContractTool } from './tools/scs/update-contract-tool'; export { HederaDeleteContractTool } from './tools/scs/delete-contract-tool'; export { HederaExecuteContractTool } from './tools/scs/execute-contract-tool'; export { HederaGetHbarPriceTool } from './tools/network/get-hbar-price-tool'; export { HederaGetTransactionTool } from './tools/transaction/get-transaction-tool';