File size: 249 Bytes
0a40afa
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
"""Abstract base class for every agent."""
from abc import ABC, abstractmethod
from typing import Dict, Any

class BaseAgent(ABC):
    @abstractmethod
    def execute(self, ctx: Dict[str, Any]):
        """Mutate / consume ctx and return a value."""