Spaces:
Build error
Build error
File size: 557 Bytes
01523b5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
from __future__ import annotations
from typing import TYPE_CHECKING, List, Tuple
from pydantic import BaseModel
# from agentverse.agents import Agent
from abc import abstractmethod
from . import updater_registry as UpdaterRegistry
if TYPE_CHECKING:
from agentverse.environments import BaseEnvironment
@UpdaterRegistry.register("base")
class BaseUpdater(BaseModel):
"""
The base class of updater class.
"""
@abstractmethod
def update_memory(self, environment: BaseEnvironment):
pass
def reset(self):
pass
|