3. Example Workflows with Hedera Agent Kit 3. ヘデラ・エージェント・キットを用いたワークフローの例
Let’s explore practical workflows for HCS, token management, and accounts. Each workflow can be executed in the Next.js Hedera Agent Chat example. HCS、トークン管理、およびアカウントに関する実践的なワークフローを探る。各ワークフローは、Next.jsのHedera Agent Chatの例で実行できる。
A. Consensus Messaging (HCS) A. コンセンサスメッセージング(HCS)
Example Chat Flow: チャットフローの例:
Create a new topic. 新しいトピックを作成する。 Submit a message “hello” to the topic. そのトピックに「hello」というメッセージを送信する。
そのトピックからのすべてのメッセージをクエリする。 Retrieve the message sequence ID for the “hello” message. 「hello」メッセージのメッセージシーケンスIDを取得する。 Submit another message “hi”. 別のメッセージ「hi」を送信する。 Filter messages by sequence number (>= 2). シーケンス番号(>= 2)でメッセージをフィルタリングする。
B. Token Management B. トークン管理
The Hedera Agent Kit simplifies token creation and transfers through a conversational flow. ヘデラエージェントキットは、会話的なフローを通じてトークンの作成や転送を簡素化する。
Example Chat Flow: チャットフローの例:
Chips(CHI)という名前のトークンを作成する。供給量は1000個で有限、小数点以下1桁、財務を自分のオペレーターアカウントに設定する。 Query details for the new token 新しいトークンの詳細をクエリする。 What is a supply key, and why is it not set? (You can ask clarifying questions) 供給キーとは何か、そしてなぜそれが設定されていないのか。(明確化のための質問をすることができる)
自分のトレジャリー(オペレーター)アカウントにおけるChipsトークンの残高をクエリする。 Transfer 1 unit of the Chips token from my treasury account to 0.0.6883658 1ユニットのChipsトークンを自分のトレジャリーアカウントから 0.0.6883658 に転送する。 Query the token balance of 0.0.6883658 for Chips token 0.0.6883658 のChipsトークンの残高をクエリする。
C. Account Management C. アカウント管理
Agents help streamline account creation and balance tracking. エージェントは、アカウント作成と残高追跡の効率化を支援する。
Example Chat Flow: チャットフローの例:
Create a new account with memo: “operator account”, balance = 10 HBAR, max auto associations = 1. メモ:「operator account」、残高 = 10 HBAR、最大自動関連付け = 1 で新しいアカウントを作成する。 Update account 0.0.6888420 to unlimited max auto associations. アカウント 0.0.6888420 を最大自動関連付け無制限に更新する。 Transfer 1 HBAR from the 0.0.6888420 account to the operator account. 1 HBARを 0.0.6888420 アカウントからオペレーターアカウントに転送する。 Query balances to verify both transfers. 両方の転送を検証するために残高をクエリする。
Start Building with the Hedera Agent Kit ヘデラ・エージェント・キットで構築を始めよう The Hedera Agent Kit makes it easier to bring AI-driven workflows onto the Hedera network. Whether you’re experimenting with human-in-the-loop agents or deploying fully autonomous agents, the plugin architecture gives you the flexibility to create powerful, domain-specific applications. ヘデラ・エージェント・キットは、AI駆動型のワークフローをヘデラネットワーク上にもたらすことを容易にする。人間介在型のエージェントを実験している場合でも、完全に自律的なエージェントをデプロイしている場合でも、プラグインアーキテクチャは、強力でドメイン固有のアプリケーションを作成するための柔軟性を提供する。
Ready to dive in? Explore the resources below to start building your AI agent: 深掘りする用意は良いかな。 以下のリソースを探索して、AIエージェントの構築を開始しよう: 💻 Hedera Agent Kit on GitHub 💻 GitHub上のヘデラ・エージェント・キット 🧩 Plugins & Tools Documentation 🧩 プラグイン&ツール ドキュメンテーション 🤖 Hedera AI Studio Documentation 🤖 ヘデラAI スタジオ ドキュメンテーション
Hedera is the most used, sustainable, enterprise-grade public network for the decentralized economy. ヘデラは、分散型経済のための、最も利用されており、持続可能で、企業グレードのパブリックネットワークである。
Written by Hedera Team ヘデラ・チームによる執筆
Governed by the world's leading organizations, Hedera provides the trust layer of the digital economy. 世界をリードする組織によって統治されているヘデラは、デジタル経済の信頼レイヤーを提供する。