# 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 .email_action_suggestion import EmailActionSuggestion


class EmailSuggestActionsResponse(UniversalBaseModel):
    """
    Response with AI-generated email action suggestions.
    """

    summary: str = pydantic.Field()
    """
    One-sentence summary of the email's intent
    """

    urgency: str = pydantic.Field()
    """
    Urgency level: low, medium, high
    """

    suggestions: typing.List[EmailActionSuggestion] = pydantic.Field()
    """
    Ranked list of suggested actions
    """

    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
