Hedera AI Agent Kit
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.
Overview
The Hedera Agent Kit provides:
Conversational AI: LangChain-based agents that understand natural language
Comprehensive Tools: 67 pre-built tools covering all Hedera services
Flexible Transaction Handling: Direct execution or provide transaction bytes for user signing
Service Builders: Fluent APIs for programmatic Hedera operations
Plugin System: Extend functionality with custom tools
TypeScript First: Fully typed with comprehensive interfaces
Installation
For WalletConnect integration:
Quick Start
Basic Conversational Agent
User Transaction Signing
Developer Pathways
Choose your approach based on your use case:
1. Conversational AI Applications
Use HederaConversationalAgent
for natural language interfaces:
2. Programmatic Control
Use HederaAgentKit
and service builders directly:
3. Custom Tool Development
Extend the kit with your own tools:
Architecture Overview
Core Components
HederaConversationalAgent
For AI-powered applications with natural language interfaces.
HederaAgentKit
The core engine that manages builders and tools.
Service Builders
The foundation - fluent APIs that simplify Hedera SDK complexity:
AccountBuilder: Account operations and HBAR transfers
HtsBuilder: Token operations (most feature-rich)
HcsBuilder: Consensus service operations
ScsBuilder: Smart contract interactions
FileBuilder: File storage operations
QueryBuilder: Read-only queries
Signers
ServerSigner: Backend applications with keys
WalletConnect: Use
@hashgraphonline/hashinal-wc
for browser wallets
Available Tools
The kit includes 67 pre-built LangChain tools:
Account Management (19 tools)
Account creation, updates, deletion
HBAR transfers and allowances
Balance queries
Scheduled transaction signing
Token Service - HTS (26 tools)
Token creation (fungible & NFT)
Minting, burning, transfers
Associations and dissociations
Freezing, pausing, KYC operations
Airdrops
Consensus Service - HCS (7 tools)
Topic creation and management
Message submission
Topic queries
Smart Contracts - SCS (7 tools)
Contract deployment
Function execution
Contract queries and updates
File Service (5 tools)
File creation and updates
Content management
Network & Queries (8 tools)
Network information
Transaction queries
HBAR price data
Block information
Service Builders
Direct programmatic access to Hedera services:
Plugin System
Extend functionality with custom plugins:
Operational Modes
Direct Execution
Agent signs and submits transactions using its configured signer:
Provide Bytes
Agent returns transaction bytes for user signing:
With automatic scheduling for user transactions:
Examples
Full working examples are available in the repository:
examples/langchain-demo.ts
- Interactive chat demoexamples/hello-world-plugin.ts
- Plugin creationexamples/custom-mirror-node.ts
- Mirror node configuration
Documentation
Resources
License
Apache 2.0
Last updated
Was this helpful?