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

from __future__ import annotations
from .audiodata import AudioData, AudioDataTypedDict
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 AudioContentTypedDict(TypedDict):
    audio_url: AudioDataTypedDict
    type: Literal["audio_url"]
    "The type of the message content."


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