Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: init DePIN plugin #1874

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

nicky-ru
Copy link
Contributor

@nicky-ru nicky-ru commented Jan 5, 2025

About

Introducing the @elizaos/plugin-depin plugin, a new addition to the Eliza Agent Framework that provides Perception and Action capabilities via DePINs.

Risks

Low.

  • This is a new plugin and does not interfere with existing functionality or other plugins.

Background

What does this PR do?

This PR creates the @elizaos/plugin-depin plugin, which empowers Eliza AI agents with advanced capabilities to interact with decentralized physical infrastructure networks (DePINs). This plugin acts as a bridge between AI agents and the real world, enabling real-time data access and device control.

Key Features:

  1. Seamless IoTeX Integration:
    • Leverages IoTeX Modular Infra to connect to a growing ecosystem of DePIN networks.
  2. Unified Data Access:
    • Standardized interfaces allow access to diverse DePIN data sources, regardless of protocols or formats.
  3. Time-Series Data Handling:
    • Equipped to analyze temporal patterns for predictive capabilities.
  4. Future-Proof Design:
    • Designed to scale with the evolving DePIN and AI landscape.

What kind of change is this?

  • Features:
    • A completely new plugin added to the Eliza Agent Framework.
  • Documentation:
    • Detailed setup instructions provided in the README to help users integrate and use the plugin effectively.

Why are we doing this? Any context or related work?

The IoTeX team provides the DEPIN+AI layer to bridge decentralized physical infrastructure networks (DePINs) with artificial intelligence, enabling transformative real-world applications. @elizaos/plugin-depin plugin is designed to expand the capabilities of Eliza agents by connecting them with DePINs, enabling them to process real-world data and perform actionable tasks.

Documentation changes needed?

My changes include the plugin's README, which serves as comprehensive documentation for setup and usage. No additional documentation changes are required.

Testing

Where should a reviewer start?

  1. Review the plugin's code for integration with DePINScan, Mapbox, and Nubila APIs.
  2. Follow the README's configuration and setup instructions to verify the plugin's functionality.
  3. Test both actions (DEPIN_PROJECTS and CURRENT_WEATHER) to ensure correct behavior.

Detailed testing steps

  1. Test DEPIN_PROJECTS action with:

    • Query token prices, market caps, and valuations.
    • Compare metrics and filter projects by categories and chains.
    • Ask device statistics and earnings data.
    • Question about specific DePIN project details.
  2. Test CURRENT_WEATHER action to:

    • Fetch current weather conditions, temperature, and forecasts
    • Analyze and answer weather-related questions, including patterns and trends.
    • Ensure proper handling of weather-themed queries, including memes and visual content generation.

Screenshots

DePIN project info:

Screenshot 2025-01-06 at 1 22 08 AM

Weather data

Screenshot 2025-01-06 at 1 22 31 AM

Discord username

nikita_zhou

@odilitime odilitime added Plugin_new Mark PRs that are a new plugin Needs Testing labels Jan 5, 2025
@odilitime
Copy link
Collaborator

be sure to include the agent/ wiring too

@nicky-ru
Copy link
Contributor Author

nicky-ru commented Jan 5, 2025

be sure to include the agent/ wiring too

added dependency to agent package.json

@wtfsayo
Copy link
Collaborator

wtfsayo commented Jan 6, 2025

looks cool but why not call it iotex plugin

@guo
Copy link

guo commented Jan 7, 2025

looks cool but why not call it iotex plugin

I think iotex plugin would be sending or trading tokens on iotex, like other chain's plugin. and we have contributed many functionalities to evm plugin already.

@AIFlowML
Copy link
Collaborator

AIFlowML commented Jan 7, 2025

looks cool but why not call it iotex plugin

I agree with him on the naming.

@wtfsayo
Copy link
Collaborator

wtfsayo commented Jan 7, 2025

looks cool but why not call it iotex plugin

I think iotex plugin would be sending or trading tokens on iotex, like other chain's plugin.

calling it dePIN is def misleading; maybe ask chatgpt for a suggested name; happy to merge

@wtfsayo wtfsayo self-requested a review January 7, 2025 13:32
Copy link
Collaborator

@wtfsayo wtfsayo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets merge lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Testing Plugin_new Mark PRs that are a new plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants