Summary
The Hedera Agent Kit provides a comprehensive set of tools organized into plugins, which can be installed alongside the Hedera Agent Kit and used to extend the core functionality of the Hedera Agent Kit SDK. These tools can be used both by the conversational agent, and when you are building with the SDK. The Hedera services and functionality built into this agent toolkit are also implemented as plugins, you can see a description of each plugin in the HEDERAPLUGINS.md file, as well as list of the individual tools for each Hedera service that are included in each plugin.Available Third-Party Plugins
- Memejob Plugin provides a streamlined interface to the memejob protocol, exposing the core actions (
create,buy,sell) for interacting with meme tokens on Hedera. See the Github repository for more information.\
Plugin Architecture
Plugin Interface
Every plugin must implement the Plugin interface:Tool Interface
Each tool must implement the Tool interface:Examples
See an example of how to create your own plugin in hedera-agent-kit/typescript/examples/plugin/example-plugin.ts See an example application using Hedera plugins and tools and a custom plugin at hedera-agent-kit/typescript/examples/langchain/plugin-tool-calling-agent.tsStep-by-Step Guide
Step 1: Create Plugin Directory Structure
Step 2: Implement Your Tool
Create your tool file (e.g., tools/my-service/my-tool.ts):Step 3: Create Plugin Definition
Create your plugin index file (index.ts):index.ts
Step 4: Register Your Plugin
Add your plugin to the main plugins index (src/plugins/index.ts):Best Practices
Parameter Validation- Use Zod schemas for robust input validation
- Provide clear descriptions for all parameters
- Mark required vs optional parameters appropriately
- Group related tools by service type
- Use consistent naming conventions
- Follow the established directory structure
- Use handleTransaction() to facilitate human-in-the-loop and autonomous execution flows
- Respect the AgentMode (AUTONOMOUS vs RETURN_BYTES)
- Implement proper transaction building patterns