Gnosis Labs: Developing an autonomous agent
2024-11-07 09:48:41 Primitive Reading

 

From Gnosis by Gnosis

Introduction

This is the second post by the Gnosis Labs team - if you haven’t yet, take a look at the inaugural post by the team, where we introduce our work.

In this article, we aim to shed some light into one of the agents we are building, the General Agent (link to repo), which can autonomously read information on-chain (e.g. balances, positions) as well as interact with protocols (e.g. place bets and redeem winnings on Omen, a prediction market running on the Gnosis chain).

The Concept of the General Agent

The idea behind the General Agent (as the name says) was to make it as general as possible, i.e. we wanted to answer the question, “Is it possible to have an agent that behaves like a living organism on-chain, which tries to survive, evolve and reproduce”?

The question above can be controversial (see a great video on this topic), but we focus here on the technical side of it - if we were to have such an agent, what kinds of tools would we have to provide to it so that it can fulfill its goals?

The first goal (”survive”) is closely related to earning money, because if it has a zero balance, then the agent will lose its ability to execute any reasonable actions on the blockchain due to its inability to pay fees.

The initial way we envision the agent to make money (among an ocean of other possible ways) is to bet on prediction markets, more specifically on Omen. If the agent has a reasonable accuracy, then it’s expected that it will earn a positive amount of money over time, hence it will be able to survive.

We note that the major source of costs for the agent is related to API calls to LLM providers, specially OpenAI (roughly $0.25 per run). For further explanation in this blog post, we neglect these AI inference costs.

Blazing fast introduction to Prediction Markets

Prediction markets (link) are markets where people can speculate on top of future events. They are very similar to future contracts, however the event they are tracking does not need to be a price of a financial asset.

Prediction markets have several use-cases: they can be used for futarchy (link) to guide government decisions; they can be used for speculating on top of sport events, and several others.

For our ensuing agents discussion, we will restrict our analysis to prediction markets that follow the Constant Product Market Maker (CPMM) mechanism (link), which in turn closely resembles the mechanism of Automated Market Makers (AMM).

Without entering the nitty gritty math details, the basic idea is the following:

Disclaimer: This specification is preliminary and is subject to change at any time without notice. Amazon Finance assumes no responsibility for any errors contained herein.

Recommended reading
Italy’s Consob and Google Partner to Block Fraudulent Investment Ads

10-22     admin     7638 Reading

Binance Integrates Amazon AI Services for User Verification and Support

10-22     admin     14814 Reading

CFI Named Sponsor of Arabian Gulf Cup in Kuwait

10-22     admin     9947 Reading

Capital One Faces Potential Enforcement Action over Savings Account Disclosures: Report

10-22     admin     7426 Reading

Live Countdown to US Elections 2024: What’s at stake for crypto

10-22     admin     17263 Reading

Coinbase hit with $300M token listing allegations by Sun, Cronje

10-22     admin     9148 Reading

Sky co-founder proposes no new emissions for core token

10-22     admin     8405 Reading

The US 2024 Elections are Shaping Up to be Crucial for Crypto's Future

10-22     admin     11455 Reading

US Election 2024 Live: Donald Trump Takes the Lead in Early Ballot Counts

10-22     admin     14951 Reading

Elon Musk and US Election: Court Allows Controversial $1M Giveaway to Continue

10-22     admin     16160 Reading

CySEC Extends FTX (EU) Suspension, Prohibiting Investment Services

10-22     admin     17588 Reading

Meet the Experts and Leading Speakers at London Summit 2024

10-22     admin     17219 Reading

AI and communities lead the future of Web3 audits: AMA with Hats Finance

10-22     admin     8440 Reading

Crypto voters guide to Congressional legislation for the 2024 election

10-22     admin     10154 Reading

Tether CEO’s MiCA concerns, Buterin to ‘Purge’ Ethereum inefficiencies: Finance Redefined

10-22     admin     7859 Reading