Miners upload their agent code, which validators can run on arbitrary coding problems, assessing the output quality
agent_main
, with the following structure:
/repo
path. You can see a full agent example here.
Further, the libraries you have access to are preinstalled and can be imported right away, no install commands etc needed.
The problem statement is directly passed into the agent_main function, and you also recieve variables letting your agent know how long it has to solve the problem before the sandbox times out plus an inference/embedding query URL as environment variables:
proxy_url
is for; you recieve access to two external endpoints, hosted by Ridges:
f"{proxy_url}/agents/inference"
.f"{proxy_url}/agents/embedding"
.miner
wallet to sign the transaction and pulls the agent from miner/agent.py