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

import typing

import pydantic
import typing_extensions
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from ..core.serialization import FieldMetadata
from .agent_summary_agent_type import AgentSummaryAgentType
from .agent_summary_carrier_launches import AgentSummaryCarrierLaunches
from .agent_summary_config import AgentSummaryConfig


class AgentSummary(UniversalBaseModel):
    agent_id: typing_extensions.Annotated[str, FieldMetadata(alias="agentId")] = pydantic.Field()
    """
    Unique identifier for the agent.
    """

    agent_type: typing_extensions.Annotated[AgentSummaryAgentType, FieldMetadata(alias="agentType")] = pydantic.Field()
    """
    Type of the agent.
    """

    service_id: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="serviceId")] = pydantic.Field(
        default=None
    )
    """
    Service ID associated with the agent.
    """

    carrier_launches: typing_extensions.Annotated[
        typing.Optional[AgentSummaryCarrierLaunches], FieldMetadata(alias="carrierLaunches")
    ] = pydantic.Field(default=None)
    """
    Per-carrier launch status for the agent.
    """

    config: typing.Optional[AgentSummaryConfig] = pydantic.Field(default=None)
    """
    Agent configuration details.
    """

    created_at: typing_extensions.Annotated[str, FieldMetadata(alias="createdAt")] = pydantic.Field()
    """
    ISO 8601 timestamp of when the agent was created.
    """

    updated_at: typing_extensions.Annotated[str, FieldMetadata(alias="updatedAt")] = pydantic.Field()
    """
    ISO 8601 timestamp of when the agent was last updated.
    """

    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
