Frequently Asked Questions (FAQ)
What is an AEA?
AEA stands for "Autonomous Economic Agent". An AEA can represent an individual, organisation or object and looks after its owner's interests. AEAs act independently of constant user input and autonomously execute actions to achieve their prescribed goals. Their purpose is to create economic value for their owners.How do AEAs talk to each other when they do not know each other?
For an Autonomous Economic Agent (AEA) to talk to other AEAs, it first needs to find them. Once it does, it should ensure that they both use the same protocol for communication, and if so, they then have to send messages to each other.The AEA framework provides the necessary services to address all three problems. You can read more about the agent communication network here, protocols here, and the Agent Communication Network (ACN) here.
How does an AEA use blockchain?
The AEA framework enables agents to interact with blockchains to settle transactions. Currently, the framework has native support for three different networks: Fetch.ai, Ethereum and Cosmos.You can read more about the framework's integration with the different blockchains here.
How does one install third party libraries?
The framework supports the use of third-party libraries hosted on PyPI. You can directly reference the external dependencies of an AEA package (e.g. skill) in its configuration file. From inside an AEA's project directory, theinstall
command can be used to install all the dependencies of the AEA listed in the configuration files of any of it's packages.
How does one connect to a database?
You have two options to connect to a database: using the built-in storage solution or using a custom ORM (object-relational mapping) library and backend.The use of the built-in storage is explained here.
How does one connect a frontend?
There are multiple options. The most obvious is using an HTTP server connection and creating a client that communicates with this connection.You can find a more detailed discussion here.
Is the AEA framework ideal for agent-based modelling?
The goal of agent-based modelling (ABM) is to study complex behaviour that emerges as a result of interactions between agents that express well-defined and often simple rule-based behaviour. ABM is a popular technique for studying biological and social systems. Despite some similarities between ABM and the AEA framework, the two serve fundamentally different purposes. ABMs are typically used to study pattern formation at meso and macro scale that result from local agent interactions, whereas in contrast AEAs pursue the owners economic goals. Although possible, the AEA framework offers more complexity than typically is required to address the types of questions ABM is commonly used for.You can find more details on the application areas of the AEA framework here.
When a new AEA is created, is the vendor
folder populated with some default packages?
All AEA projects by default hold the open_aea/signing:1.0.0
protocols. These (as all other packages installed from the registry) are placed in the vendor
folder.
You can find more details about the file structure here.
Is there a standard for private key files?
Currently, the private keys are stored in.txt
files. This is temporary and will be improved soon.