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

from __future__ import annotations
from .chatcontenttext import ChatContentText, ChatContentTextTypedDict
from openrouter.types import BaseModel
from typing import List, Literal, Optional, Union
from typing_extensions import NotRequired, TypeAliasType, TypedDict


ChatDeveloperMessageContentTypedDict = TypeAliasType(
    "ChatDeveloperMessageContentTypedDict", Union[str, List[ChatContentTextTypedDict]]
)
r"""Developer message content"""


ChatDeveloperMessageContent = TypeAliasType(
    "ChatDeveloperMessageContent", Union[str, List[ChatContentText]]
)
r"""Developer message content"""


ChatDeveloperMessageRole = Literal["developer",]


class ChatDeveloperMessageTypedDict(TypedDict):
    r"""Developer message"""

    content: ChatDeveloperMessageContentTypedDict
    r"""Developer message content"""
    role: ChatDeveloperMessageRole
    name: NotRequired[str]
    r"""Optional name for the developer message"""


class ChatDeveloperMessage(BaseModel):
    r"""Developer message"""

    content: ChatDeveloperMessageContent
    r"""Developer message content"""

    role: ChatDeveloperMessageRole

    name: Optional[str] = None
    r"""Optional name for the developer message"""
