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

from __future__ import annotations
from openrouter.types import BaseModel
from typing import Literal, Optional
from typing_extensions import NotRequired, TypedDict


URLCitationType = Literal["url_citation",]


class URLCitationTypedDict(TypedDict):
    end_index: int
    start_index: int
    title: str
    type: URLCitationType
    url: str
    content: NotRequired[str]


class URLCitation(BaseModel):
    end_index: int

    start_index: int

    title: str

    type: URLCitationType

    url: str

    content: Optional[str] = None
