Gnosis Labs
  • 🔌Welcome to Gnosis AI Docs!
  • ðŸ’ŧSetting up AI agents for prediction markets
    • ðŸĪšCreating a new function for the general agent
    • 🐉Creating a new trader agent
  • 🎞ïļFrameworks for AI Agents
  • 🔗Developer Resources
  • Dashboards
Powered by GitBook
On this page

Setting up AI agents for prediction markets

PreviousWelcome to Gnosis AI Docs!NextCreating a new function for the general agent

Last updated 10 months ago

To begin with your custom project implementation, you will have to setup the following dependencies.

  1. Install the project dependencies with poetry, using Python >=3.10:

python3.10 -m pip install poetry
python3.10 -m poetry install
python3.10 -m poetry shell
  1. Create a .env file in the root of the repo with the variables.

These keys are necessary for the agent to interact with the prediction market APIs and other services.

MANIFOLD_API_KEY=...
OPENAI_API_KEY=...
GNOSIS_WALLET_PVT_KEY=...

Depending on the agent you want to run, you may require additional variables. See an exhaustive list of you may want to consider. The Prediction Market Trader Agent can interact with and as well.

Interactive Streamlit Apps

  • An autonomous agent with function calling: Can be 'prodded' by the user to guide its strategy. You can find the deployment .

streamlit run prediction_market_agent/agents/microchain_agent/app.py 
  • Pick a prediction market question, or create your own, and pick one or more agents to perform research and make a prediction, deployed .

streamlit run scripts/agent_app.py
ðŸ’ŧ
additional variables
AIOmen
Polymarket
here
here