Add MetadataEngine and ShortsMetadataEngine classes

This commit is contained in:
2024-02-20 16:22:28 +01:00
parent 7322abf1c3
commit f11f493e46
5 changed files with 59 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
from abc import abstractmethod
from typing import TypedDict
from .. import BaseEngine
class MetadataEngineSettings(TypedDict):
title: str
description: str
class BaseMetadataEngine(BaseEngine):
def __init__(self, **kwargs) -> None:
...
@abstractmethod
def get_metadata(self, input: str) -> MetadataEngineSettings:
...