diff --git a/docs/website/pages/blog/eliza-with-move.en-US.mdx b/docs/website/pages/blog/eliza-with-move.en-US.mdx new file mode 100644 index 0000000000..4367355c7e --- /dev/null +++ b/docs/website/pages/blog/eliza-with-move.en-US.mdx @@ -0,0 +1,103 @@ +--- +title: 'Fully On-Chain Eliza with Move Language: Pioneering Decentralized AI Agents' +description: "" +author: jolestar +category: Developer +date: 2025/01/16 +--- + +import PostHeader from "/components/blog/postHeader"; + + + +![](/blog/eliza-with-move/eliza-with-move.jpg) + +Rooch Network is breaking new ground by exploring implementing a fully on-chain version of Eliza using the Move language. This innovative approach stores character data and memory directly within smart contracts, unlocking the potential for truly decentralized AI agents. + +## Defining Characters in Move + +At the core of this initiative lies the character definition in Move. + +![](/blog/eliza-with-move/code.png) + +The data structure adheres to the JSON standard previously used by Eliza, facilitating seamless migration of existing character definitions onto the blockchain. For the complete code, visit the [Rooch GitHub repository](https://github.com/rooch-network/rooch/tree/main/examples/foc_eliza). + +## Getting Started with On-Chain Eliza + +Developers can interact with Eliza dynamically by leveraging on-chain character and memory storage. Here's a quick guide to deploying and using it: + +1. **Deploy the `foc_eliza` modules to Rooch:** + + ```bash + rooch move publish --named-addresses foc_eliza=default + ``` + +2. **Create an on-chain character using an Eliza character JSON file:** + + ```bash + rooch move run --function default::character::create_character_from_json --args file:../../../eliza/characters/dobby.character.json + ``` + +## Why On-Chain? + +Transitioning Eliza’s character and memory storage on-chain offers transformative benefits: + +**1.Dynamic Evolution** + +On-chain storage enables characters’ bios, interests, and message templates to evolve dynamically through user interactions. This fosters a transparent, community-driven process, where participants can oversee and shape the development of AI agents. + +**2. Governance and Auditing** + +With on-chain governance, communities can define and enforce rules for character evolution and memory management. For example: + +- Prevent memory contamination from harmful inputs. +- Audit public AI agents’ behavior to align with community expectations. + +**3.Decentralized Trustworthiness** + +Storing characters and memory on-chain enhances transparency and reliability, making Eliza an ideal fit for open and trustworthy AI ecosystems. + +## Future Developments + +Our vision for on-chain AI agents includes the following milestones: + +1. **Dynamic Character Loader** + + Enable Eliza to dynamically load and update character definitions directly from the blockchain. + +2. **On-Chain Memory Sync Plugin** + + Develop a plugin to synchronize Eliza’s memory with on-chain states in real-time. + +3. **AI Oracle Integration** + + Integrate AI Oracles for advanced decision-making, enhancing intelligent on-chain interactions. + +4. **Standardized On-Chain Components** + + Abstract core on-chain components for AI agents and integrate them into the Rooch Move framework to standardize AI agent development. + +## How to Participate + +We invite developers and innovators to push the boundaries of on-chain AI by contributing to the following initiatives: + +1. **Push the Boundaries of Smart Contracts** + + Collaborate to explore the possibilities of implementing on-chain AI Agents, such as:Supporting automatic state vectorization and vector retrieval directly in smart contracts(RGA on-chain) + +2. **Provide More On-Chain Services** + + Build services tailored for AI agents, such as: + + - On-chain chatrooms for multi-user interactions. + - Social media utilities like Twitter or blogging tools for AI agents. + +3. **Explore AI and DeFi/BTCFi Integration** + + Merge on-chain AI capabilities with decentralized finance applications, unlocking novel opportunities for the Bitcoin ecosystem. + +## Conclusion + +Rooch Network’s fully on-chain Eliza project marks a pivotal step in decentralizing AI agent development. By leveraging Move language and on-chain storage, we aim to create transparent, community-driven, and reliable AI agents for the future. + +**Join us in building the next frontier of AI agents on-chain!** diff --git a/docs/website/pages/blog/eliza-with-move.zh-CN.mdx b/docs/website/pages/blog/eliza-with-move.zh-CN.mdx new file mode 100644 index 0000000000..a969c48675 --- /dev/null +++ b/docs/website/pages/blog/eliza-with-move.zh-CN.mdx @@ -0,0 +1,103 @@ +--- +title: '使用 Move 语言构建全链 Eliza:开创性的去中心化人工智能代理' +description: "" +author: jolestar +category: Developer +date: 2025/01/16 +--- + +import PostHeader from "/components/blog/postHeader"; + + + +![](/blog/eliza-with-move/eliza-with-move.jpg) + +Rooch Network 通过探索使用 Move 语言实现 Eliza 的完全链上版本来开辟新天地。这种创新方法将角色数据和记忆直接存储在智能合约中,释放了真正去中心化人工智能代理的潜力。 + +## 在 Move 中定义角色 + +这一举措的核心在于 Move 中的角色定义。 + +![](/blog/eliza-with-move/code.png) + +数据结构遵循 Eliza 之前使用的 JSON 标准,有助于将现有角色定义无缝迁移到区块链上。如需完整代码,请访问 [Rooch GitHub 存储库](https://github.com/rooch-network/rooch/tree/main/examples/foc_eliza)。 + +## 链上 Eliza 入门 + +开发人员可以利用链上角色和记忆存储与 Eliza 进行动态交互。以下是部署和使用它的快速指南: + +1. **将 `foc_eliza` 模块部署到 Rooch:** + + ```bash + rooch move publish --named-addresses foc_eliza=default + ``` + +2. **使用 Eliza 角色 JSON 文件创建链上角色:** + + ```bash + rooch move run --function default::character::create_character_from_json --args file:../../../eliza/characters/dobby.character.json + ``` + +## 为什么要上链? + +将 Eliza 的角色和记忆存储转移到链上可带来变革性的好处: + +1. **动态演化** + +链上存储使角色的简介、兴趣和消息模板能够通过用户交互动态发展。这促进了一个透明的、社区驱动的流程,参与者可以监督和塑造人工智能代理的开发。 + +2. **治理和审计** + +通过链上治理,社区可以定义和执行角色进化和记忆管理的规则。例如: + +- 防止有害输入造成记忆污染。 +- 审核公共人工智能代理的行为以符合社区期望。 + +3. **去中心化的可信度** + +在链上存储角色和记忆可增强透明度和可靠性,使 Eliza 成为开放且值得信赖的人工智能生态系统的理想选择。 + +## 未来发展 + +我们对链上人工智能代理的愿景包括以下里程碑: + +1. **动态角色加载器** + + 使 Eliza 能够直接从区块链动态加载和更新角色定义。 + +2. **链上记忆同步插件** + + 开发一个插件来实时同步 Eliza 的记忆和链上状态。 + +3. **人工智能预言机集成** + + 集成人工智能预言机以进行高级决策,增强智能链上交互。 + +4. **标准化链上组件** + + 抽象出AI智能体的核心链上组件,并将其集成到Rooch Move框架中,以标准化AI智能体的开发。 + +## 如何参与 + +我们邀请开发者和创新者通过以下举措来突破链上人工智能的界限: + +1. **突破智能合约的界限** + + 合作探索实现链上AI Agent的可能性,例如:直接在智能合约中支持自动状态向量化和向量检索(RGA链上) + +2. **提供更多链上服务** + + 构建为 AI 代理量身定制的服务,例如: + + - 用于多用户交互的链上聊天室。 + - Twitter 等社交媒体实用程序或人工智能代理的博客工具。 + +3. **探索人工智能和 DeFi/BTCFi 集成** + + 将链上人工智能功能与去中心化金融应用程序相结合,为比特币生态系统释放新的机遇。 + +## 结论 + +Rooch Network 的完全链上 Eliza 项目标志着去中心化人工智能代理开发的关键一步。通过利用 Move 语言和链上存储,我们的目标是为未来创建透明、社区驱动且可靠的人工智能代理。 + +**与我们一起构建链上人工智能代理的下一个前沿!** diff --git a/docs/website/public/blog/eliza-with-move/code.png b/docs/website/public/blog/eliza-with-move/code.png new file mode 100644 index 0000000000..06feffd184 Binary files /dev/null and b/docs/website/public/blog/eliza-with-move/code.png differ diff --git a/docs/website/public/blog/eliza-with-move/eliza-with-move.jpg b/docs/website/public/blog/eliza-with-move/eliza-with-move.jpg new file mode 100644 index 0000000000..ffee5d87a7 Binary files /dev/null and b/docs/website/public/blog/eliza-with-move/eliza-with-move.jpg differ