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

from ....core.unchecked_base_model import UncheckedBaseModel
import typing_extensions
import typing
from .iaa_stats_response_iaa import IaaStatsResponseIaa
from ....core.serialization import FieldMetadata
import pydantic
from .iaa_stats_response_common_tasks import IaaStatsResponseCommonTasks
from .iaa_stats_response_std import IaaStatsResponseStd
from ....core.pydantic_utilities import IS_PYDANTIC_V2


class IaaStatsResponse(UncheckedBaseModel):
    iaa: typing_extensions.Annotated[typing.Optional[IaaStatsResponseIaa], FieldMetadata(alias="IAA")] = pydantic.Field(
        default=None
    )
    """
    Inter-Annotator Agreement matrix - 2D array when per_label=false, object with label keys when per_label=true
    """

    common_tasks: typing.Optional[IaaStatsResponseCommonTasks] = pydantic.Field(default=None)
    """
    Common tasks matrix - 2D array when per_label=false, object with label keys when per_label=true
    """

    std: typing.Optional[IaaStatsResponseStd] = pydantic.Field(default=None)
    """
    Standard deviation - number when per_label=false, object with label keys when per_label=true
    """

    users: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = pydantic.Field(default=None)
    """
    List of users in the matrix
    """

    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
