# This file was auto-generated by Fern from our API Definition.

import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from .catalog_item_summary import CatalogItemSummary
from .context_cluster_status import ContextClusterStatus


class ContextClusterWithItems(UniversalBaseModel):
    """
    Context cluster with associated catalog items.
    """

    name: str
    description: typing.Optional[str] = None
    tags: typing.Optional[typing.List[str]] = None
    include_in_rag: typing.Optional[bool] = None
    status: typing.Optional[ContextClusterStatus] = None
    id: str
    collection_id: str
    usage_count: typing.Optional[int] = None
    last_used_at: typing.Optional[str] = None
    created_at: typing.Optional[str] = None
    modified_at: typing.Optional[str] = None
    created_by_email: typing.Optional[str] = None
    modified_by_email: typing.Optional[str] = None
    catalog_items: typing.Optional[typing.List[CatalogItemSummary]] = None
    item_count: typing.Optional[int] = None

    if IS_PYDANTIC_V2:
        model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True)  # type: ignore # Pydantic v2
    else:

        class Config:
            frozen = True
            smart_union = True
            extra = pydantic.Extra.allow
