Coverage for source/agent/strategies/performance_testable.py: 80%
5 statements
« prev ^ index » next coverage.py v7.8.0, created at 2025-08-01 20:51 +0000
« prev ^ index » next coverage.py v7.8.0, created at 2025-08-01 20:51 +0000
1# agent/strategies/performance_testable.py
3# global imports
4from abc import ABC, abstractmethod
6# local imports
8class PerformanceTestable(ABC):
9 """
10 Implements a performance testable interface for agents.
11 """
13 @abstractmethod
14 def perform(self, observation: list[float]) -> int:
15 """
16 Performs the action for the agent based on the given observation.
18 Parameters:
19 observation (list[float]): The observation data to use for the action.
21 Returns:
22 (int): The result of the action.
23 """
25 pass