"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from .imagedata import ImageData, ImageDataTypedDict
from friendli.core.types import BaseModel
from friendli.core.utils import validate_const
import pydantic
from pydantic.functional_validators import AfterValidator
from typing import Literal
from typing_extensions import Annotated, TypedDict


class ImageContentTypedDict(TypedDict):
    image_url: ImageDataTypedDict
    type: Literal["image_url"]
    "The type of the message content."


class ImageContent(BaseModel):
    image_url: ImageData
    TYPE: Annotated[
        Annotated[Literal["image_url"], AfterValidator(validate_const("image_url"))],
        pydantic.Field(alias="type"),
    ] = "image_url"
    "The type of the message content."
