Skip to content

gnosis/gnosis-ai-hackathon-starter

Repository files navigation

Gnosis AI Scratch Pad

Welcome to the Gnosis AI Scratch Pad repo!

Here you will find all you need to build a tool for AI Agents that can make predictions on outcomes of future events.

Follow the instructions below to get started.

Support

Contact us at https://t.me/+Fb0trLKZdMw2MTQ8 or via the Gnosis Discord (channel gnosis-ai).

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 on the TG group above.

However, everyone is welcome to use arbitrary LLM if wanted.

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

Production network

Use your existing or create a new wallet on Gnosis Chain.

By default agents will do only very tiny bets (0.00001 xDai per market), but of course, you can contact us on the TG group above with your public key to get some free xDai.

Anvil network

Another option is to use Anvil to connect to a fork of Gnosis Chain running locally, just run

anvil --fork-url https://gnosis-rpc.publicnode.com

and fill GNOSIS_RPC_URL=127.0.0.1:8545 in the .env file.

Then you can set BET_FROM_PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 as a private key.

Task

Implement the agent in main.py using the PMAT library.

Finished implementation can be found here.

Full-fledged agents that Gnosis AI runs can be found in https://github.com/gnosis/prediction-market-agent.

About

Repository for the hackathons run by Gnosis AI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages