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

from __future__ import annotations
from .streamlogprob import StreamLogprob, StreamLogprobTypedDict
from openrouter.types import BaseModel
from typing import List, Literal
from typing_extensions import TypedDict


TextDoneEventType = Literal["response.output_text.done",]


class TextDoneEventTypedDict(TypedDict):
    r"""Event emitted when text streaming is complete"""

    content_index: int
    item_id: str
    logprobs: List[StreamLogprobTypedDict]
    output_index: int
    sequence_number: int
    text: str
    type: TextDoneEventType


class TextDoneEvent(BaseModel):
    r"""Event emitted when text streaming is complete"""

    content_index: int

    item_id: str

    logprobs: List[StreamLogprob]

    output_index: int

    sequence_number: int

    text: str

    type: TextDoneEventType
