智能体工作流

Hedera Agent Kit v4 Migration

hedera-dev/hedera-skills

This skill should be used when the user asks to "migrate to hedera-agent-kit v4", "upgrade hak v3 to v4", "convert plugin to BaseTool", "migrate Tool to BaseTool", "rename hedera-agent-kit imports", "fix v3 deprecation warnings", or has a project still on `hedera-agent-kit@3.x` / `@hashgraph/sdk` that needs to move to `@hashgraph/hedera-agent-kit@4.x` / `@hiero-ledger/sdk`. Covers both custom-plugin migration (Tool → BaseTool) and toolkit-consumer migration (LangChain/AI SDK/ElizaOS/MCP).

  • 0 次安装
  • 28 星标

安装命令

npx skills add https://github.com/hedera-dev/hedera-skills --skill 'Hedera Agent Kit v4 Migration'

SKILL.md

Migrating Hedera Agent Kit v3 → v4

This skill drives a complete v3 → v4 migration. v4 is the current major; v3 (hedera-agent-kit@3.x) no longer receives updates. Use this skill whenever you see code importing from hedera-agent-kit (unscoped) or @hashgraph/sdk.

Quick triage — what kind of v3 code is this?

Before editing anything, classify the file you are migrating. The migration steps differ.

If the file… It's a… Apply
Defines a Plugin and exports tool factories that return object literals with an execute function Custom plugin Plugin migration + BaseTool migration
Calls new HederaLangchainToolkit / HederaAIToolkit / HederaElizaOSToolkit / HederaMCPToolkit Toolkit consumer Toolkit migration
Imports plugins like coreTokenPlugin, coreAccountPlugin, coreHTSPlugin Toolkit consumer (uses built-in plugins) Toolkit migration + alias rename
Imports ResponseParserService or HederaMCPServer from hedera-agent-kit Toolkit consumer Toolkit migration (these moved to toolkit packages)
Both Run toolkit migration first, then plugin migration for each tool

Migration workflow

Step 1 — find every v3 entry point