From ca3af42911fc9f12965dca86cb5ad4c686969108 Mon Sep 17 00:00:00 2001 From: kush-alloralabs Date: Wed, 8 Jan 2025 02:08:19 -0500 Subject: [PATCH] initial --- .../integrations/eliza-os/_meta.json | 4 ++ .../integrations/{ => eliza-os}/eliza-os.mdx | 12 ---- .../integrations/eliza-os/example-usage.mdx | 55 +++++++++++++++++++ 3 files changed, 59 insertions(+), 12 deletions(-) create mode 100644 pages/marketplace/integrations/eliza-os/_meta.json rename pages/marketplace/integrations/{ => eliza-os}/eliza-os.mdx (88%) create mode 100644 pages/marketplace/integrations/eliza-os/example-usage.mdx diff --git a/pages/marketplace/integrations/eliza-os/_meta.json b/pages/marketplace/integrations/eliza-os/_meta.json new file mode 100644 index 0000000..8ba6cb2 --- /dev/null +++ b/pages/marketplace/integrations/eliza-os/_meta.json @@ -0,0 +1,4 @@ +{ + "eliza-os": "Eliza OS", + "example-usage": "Example Usage" +} diff --git a/pages/marketplace/integrations/eliza-os.mdx b/pages/marketplace/integrations/eliza-os/eliza-os.mdx similarity index 88% rename from pages/marketplace/integrations/eliza-os.mdx rename to pages/marketplace/integrations/eliza-os/eliza-os.mdx index 6f97f7a..5d3c6e6 100644 --- a/pages/marketplace/integrations/eliza-os.mdx +++ b/pages/marketplace/integrations/eliza-os/eliza-os.mdx @@ -58,18 +58,6 @@ console.log(prediction) // { topic: 'ETH 5min Prediction', id: 13, value: 3393.364326646801085508 } ``` ---- - -## Example Agent Interaction - -```plaintext -User: "What is the predicted ETH price in 5 minutes?" -Agent: "I'll get the inference now..." -Agent: "Inference provided by Allora Network on topic ETH 5min Prediction (ID: 13): 3393.364326646801085508" -``` - ---- - ## Testing the Plugin ### Prerequisites diff --git a/pages/marketplace/integrations/eliza-os/example-usage.mdx b/pages/marketplace/integrations/eliza-os/example-usage.mdx new file mode 100644 index 0000000..dfe177e --- /dev/null +++ b/pages/marketplace/integrations/eliza-os/example-usage.mdx @@ -0,0 +1,55 @@ +# Example Usage + +This example will show you how to use the Allora Network plugin for Eliza OS by interacting with . + +## Prerequisites + +- Node 23.3 +- [Python 2.7+](https://www.python.org/downloads/) +- [`pnpm`](https://pnpm.io/installation) +- [Allora API Key](https://developer.upshot.xyz) + +## Download and Install Eliza OS + +Download the [Eliza OS](https://github.com/elizaOS) and cd into the directory. + +```bash +git clone https://github.com/elizaOS/eliza.git +cd eliza +``` + +### Copy the `.env.example` file + +```bash +cp .env.example .env +``` + +### Change Allora API Key and Chain ID + +In your `.env` file, change the `ALLORA_API_KEY` and `CHAIN_ID` to your Allora API Key and Chain ID (Chain ID is the Allora Network chain you want to interact with, e.g. `testnet` or `mainnet`). + + +You can get your Allora API Key from the [Allora Developer Dashboard](https://developer.upshot.xyz). + + +```bash +# Allora API Key +ALLORA_API_KEY= + +# Chain ID +CHAIN_ID= +``` + +### Run the Eliza OS + +```bash +run scripts/start.sh +``` + +### Converse with Eliza + +```plaintext +User: "What is the predicted ETH price in 5 minutes?" +Agent: "I'll get the inference now..." +Agent: "Inference provided by Allora Network on topic ETH 5min Prediction (ID: 13): 3393.364326646801085508" +```