Implementing Agent ClassesΒΆ

All agents used in creamas must inherit from CreativeAgent. They should also accept one parameter that is passed down to super().__init__():

Each agent class should call super().__init__() first thing in __init__(), for example:

from creamas.core.agent import CreativeAgent

class MyAgent(CreativeAgent):

        def __init__(self, environment, *args, **kwargs):
                super().__init__(environment)
                # Your own initialization code