Source code for smarter.apps.plugin.manifest.models.skill_plugin.model

"""Smarter API Plugin Manifest."""

from typing import ClassVar

from pydantic import Field

from smarter.apps.plugin.manifest.models.common.plugin.model import SAMPluginCommon
from smarter.apps.plugin.manifest.models.skill_plugin.const import MANIFEST_KIND
from smarter.lib.manifest.enum import SAMKeys

from .spec import SAMSkillPluginSpec

MODULE_IDENTIFIER = MANIFEST_KIND


[docs] class SAMSkillPlugin(SAMPluginCommon): """Smarter API Manifest - Skill Connection Model.""" class_identifier: ClassVar[str] = MODULE_IDENTIFIER spec: SAMSkillPluginSpec = Field( ..., description=f"{class_identifier}.{SAMKeys.SPEC.value}[obj]: Required, the {MANIFEST_KIND} specification.", )