π€ WEB3_AGENT - AI POWERD WEB3 IMAGE GENERATOR AGENT BOT
Documentation: docs.galadriel.com
w3b3_Agent is a Galadriel the first L1 for AI.
It captures the fusion of AI, blockchain, and real-time digital art creation.
Ethereum enabled writing smart contracts to build dApps. Similarly, Galadriel enables developers to build AI apps & agents like smart contracts β decentralized and on-chain. We support a range of AI usage: from simple LLM features in existing dApps to highly capable AI agents like on-chain AI hedge funds, in-game AI NPCs and AI-generated NFTs.
Galadriel is built on a parallel-execution EVM stack which enables high throughput and low latency while providing a familiar experience to Solidity developers. It brings AI inference on-chain in a low-cost, low-latency manner through teeML (Trusted Execution Environment Machine Learning) which allows querying open and closed-source LLM models in a verifiable way.
This quickstart covers two things:
A Galadriel devnet account. We recommend creating a new EVM account for development purposes.
Some devnet tokens on the account you are using.
node and npm installed on your machine.
git clone https://github.com/bild96/w3b3_agent.git
cd w3b3_agent/contracts
cp template.env .env
Then, modify the ||.env|| file:
# In repo root -> /contracts
npm install
npm run deployQuickstart
The output of the script will show the deployed contract address. Store this and export it in terminal to call the contract later:
export QUICKSTART_CONTRACT_ADDRESS=0x...
Prerequisites:
Youβve deployed the quickstart contract in the previous step, and stored the contract address.
Execute the following command to run a script that calls the
npm run callQuickstart
The script will interactively ask for the input (DALL-E prompt: what image should be generated) and then call the contract with the input. The output, when ready, will be printed to the console.
If this step fails, make sure you have set the ||QUICKSTART_CONTRACT_ADDRESS|| environment variable to the address of your deployed contract.
π Youβre done! Youβve successfully created and called your own Web3 image generator agent bot.
π§βπ» Bild96
ποΈ ETHonline2024 Β© 2024
There are no datasets linked
There are no datasets linked