mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-08-28 05:25:04 +00:00
25 lines
379 B
Python
25 lines
379 B
Python
from abc import ABCMeta, abstractmethod
|
|
|
|
|
|
class BaseMonitor(metaclass=ABCMeta):
|
|
|
|
def __init__(self, **kwargs):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def add(self):
|
|
"""
|
|
:return:
|
|
"""
|
|
|
|
@abstractmethod
|
|
def add_token(self):
|
|
"""
|
|
:return:
|
|
"""
|
|
|
|
@abstractmethod
|
|
def flush(self):
|
|
"""
|
|
:return:
|
|
"""
|