Spaces:
Sleeping
Sleeping
File size: 476 Bytes
8c686ce | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 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
|