Source code for smarter.apps.chatbot.manifest.models.chatbot.model

"""Smarter API Chatbot Manifest"""

from typing import ClassVar, Optional

from pydantic import Field

from smarter.apps.chatbot.manifest.models.chatbot.const import MANIFEST_KIND
from smarter.lib.manifest.enum import SAMKeys
from smarter.lib.manifest.models import AbstractSAMBase

from .metadata import SAMChatbotMetadata
from .spec import SAMChatbotSpec
from .status import SAMChatbotStatus

MODULE_IDENTIFIER = MANIFEST_KIND


[docs] class SAMChatbot(AbstractSAMBase): """Smarter API Manifest - Chatbot""" class_identifier: ClassVar[str] = MODULE_IDENTIFIER metadata: SAMChatbotMetadata = Field( ..., description=f"{class_identifier}.{SAMKeys.METADATA.value}[obj]: Required, the {MANIFEST_KIND} metadata.", ) spec: SAMChatbotSpec = Field( ..., description=f"{class_identifier}.{SAMKeys.SPEC.value}[obj]: Required, the {MANIFEST_KIND} specification.", ) status: Optional[SAMChatbotStatus] = Field( default=None, description=f"{class_identifier}.{SAMKeys.STATUS.value}[obj]: Optional, Read-only. Stateful status information about the {MANIFEST_KIND}.", )