Agents

Definition

An agent makes actions at each step of the simulation. It holds tokens, sends transactions, reads the simulation state, and stores metrics.

Example

The ResearcherAgent is the fundamental building block of any science simulation.

Prose

At each step, ResearcherAgent checks whether its research proposal has been accepted and funded by the DAOTreasuryAgent. If it was, all the funds received are immediately spent on buying knowledge assets from the KnowledgeMarketAgent and publishing the results from research. If the proposal was not accepted, the researcher needs to buy knowledge assets from the KnowledgeMarketAgent from a personal wallet so that the agent remains competitive in subsequent funding rounds.

The agent also checks the state of its proposal. If it was just funded, the agent waits a predetermined amount of time (from the proposal) before deleting it and re-applying for funding with a new research project.

Pseudocode

check if research funded

โ†’ yes โ†’ spend funds on research

โ†’ no โ†’ buy new knowledge assets in market

check if proposal created

โ†’ yes โ†’ already funded?

โ†’ time to finish research?

โ†’ yes โ†’ reset proposal, finish research

โ†’ no โ†’ create new proposal

Further Reading

Last updated