alien-physics-openenv / agents /base_agent.py
LostDecimal's picture
reward curve
8c686ce
Raw History Blame Contribute Delete
476 Bytes
from abc import ABC, abstractmethod
from ontology_architect.models import OntologyArchitectAction, OntologyArchitectObservation
class BaseAgent(ABC):
"""Abstract base class for all Ontology Architect agents."""
def __init__(self, name: str):
self.name = name
@abstractmethod
def act(self, observation: OntologyArchitectObservation) -> OntologyArchitectAction:
"""Given an observation from the environment, return an action."""
pass