Open Archento opened 1 month ago
Add automatic logging of agent address on agent startup.
I think there are two main approaches when it comes to configuration files:
.yaml
in this case), create a dict of values to be used as a direct way of creating an agent, orAgentConfig
object from a file which includes type validation to create agents from.Both can coexist but we may want to force one of the usage of one over the other.
We can think about adding the AgentConfig
object to the agent by default so that config handling will be more natively embedded in the framework.
Using yaml files makes handling of multiple agents very easy as the configs just need to be separated by ---
for it to be loaded like this:
"""yaml contents
name: alice
seed: ...
---
name: bob
seed: ...
"""
confs = load_configs(PATH) # multiple configs in one file
bureau = Bureau()
for conf in confs:
bureau.add(Agent(**conf))
bureau.run()
Requirements
We need to improve logging throughout the whole framework and enable the user to configure verbosity as well as output of the logs.
Potential solution could be a config mapping which may be created by the user or generated and filled with default values on demand by running the agent with a CLI argument.
Agent instantiation
my_agent.yaml
By using this approach it should also be easier to scale agent deployment if we can put every agent init argument inside the config map, enabling the developer to invoke: