Skip to content

gnosis/dAGI-hack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gnosis Labs dAGI 2024

Welcome to the Gnosis AI dAGI Hackathon repo! Here you will find all you need to build an AI agent that can autonomously complete actions (including onchain).

Presentation available here.

Support

Contact us on Discord (channel #gnosis-ai on the Gnosis Discord).

Setup

Install the project dependencies with poetry, using Python 3.10 (you can use pyenv to manage multiple Python versions):

python3.10 -m pip install poetry
python3.10 -m poetry install
python3.10 -m poetry shell

Copy .env.example to .env and fill in the values:

OpenAI API key

We will provide you with OpenAI key that's allowed to use gpt-3.5-turbo and embedding models, contact us.

However, everyone is welcome to use any arbitrary LLM you like (for example, open-source Ollama models).

Tavily API key

Create a free acount on https://tavily.com and get the key there.

Again, everyone is welcome to use arbitrary search engines, combine them, or even do a totally different approaches!

Private key on Gnosis Chain

We recommend you create a fresh new developer key for the project to avoid losing your funds.

You can create a new set of private and public keys by running

from eth_account import Account
acc = Account.create()
print (acc.key.hex(), acc.address)

Running the agent

poetry run python general_agent/main.py

Task

There are multiple avenues to explore with such a general agent. Ultimately we want it to thrive in the blockchain and be an autonomous agent (some even claim it can be an alternate form of life).

Feel free to follow your inspiration and present us with your ideas. We list some of our ideas below:

Deployment

We suggest using Modal for the deployment of agents. If you installed the dependencies using Poetry, Modal should already be available in your environment. You need to create an account and generate api keys. Then, add the keys MODAL_TOKEN_ID and MODAL_TOKEN_SECRET to your .env file.

For creating a cron job that triggers the general agent, deploy it with

poetry run modal deploy --name <YOUR_APP_NAME> general_agent/remote_runner.py  

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%