Spaces:
Sleeping
Sleeping
Download agents/base_agent.py from LostDecimal/alien-physics-openenv: direct link, hf CLI and curl.
- Browser
- Download file 476 Bytes
-
https://huggingface.co/spaces/LostDecimal/alien-physics-openenv/resolve/main/agents/base_agent.py
- Command line
-
hf download hf://spaces/LostDecimal/alien-physics-openenv/agents/base_agent.py
-
curl -L -o base_agent.py https://huggingface.co/spaces/LostDecimal/alien-physics-openenv/resolve/main/agents/base_agent.py
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 | |
| def act(self, observation: OntologyArchitectObservation) -> OntologyArchitectAction: | |
| """Given an observation from the environment, return an action.""" | |
| pass | |