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

1# agent/strategies/performance_testable.py 

2 

3# global imports 

4from abc import ABC, abstractmethod 

5 

6# local imports 

7 

8class PerformanceTestable(ABC): 

9 """ 

10 Implements a performance testable interface for agents. 

11 """ 

12 

13 @abstractmethod 

14 def perform(self, observation: list[float]) -> int: 

15 """ 

16 Performs the action for the agent based on the given observation. 

17 

18 Parameters: 

19 observation (list[float]): The observation data to use for the action. 

20 

21 Returns: 

22 (int): The result of the action. 

23 """ 

24 

25 pass