This commit is contained in:
2026-01-11 03:24:49 -08:00
parent e608b88062
commit 5985a8306a
13 changed files with 401 additions and 101 deletions

View File

@@ -142,6 +142,21 @@ class Provider(ABC):
self.config = config or {}
self.name = self.__class__.__name__.lower()
@classmethod
def config(cls) -> List[Dict[str, Any]]:
"""Return configuration schema for this provider.
Returns a list of dicts, each defining a field:
{
"key": "api_key",
"label": "API Key",
"default": "",
"required": True,
"secret": True
}
"""
return []
@classmethod
def required_config_keys(cls) -> List[str]:
keys = getattr(cls, "REQUIRED_CONFIG_KEYS", None)