first commit
This commit is contained in:
15
backend/core/plugins/summarizer.py
Normal file
15
backend/core/plugins/summarizer.py
Normal file
@@ -0,0 +1,15 @@
|
||||
"""Контракт плагина Summarizer."""
|
||||
|
||||
from abc import ABC, abstractmethod
|
||||
from typing import ClassVar
|
||||
|
||||
|
||||
class Summarizer(ABC):
|
||||
"""Интерфейс Strategy для реализаций суммаризации текста."""
|
||||
|
||||
provider: ClassVar[str]
|
||||
|
||||
@abstractmethod
|
||||
def summarize(self, transcript: str) -> str:
|
||||
"""Создать резюме переданной трансцрибции."""
|
||||
...
|
||||
Reference in New Issue
Block a user