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

from __future__ import annotations
from .outputitems import OutputItems, OutputItemsTypedDict
from openrouter.types import BaseModel
from typing import Literal
from typing_extensions import TypedDict


StreamEventsResponseOutputItemDoneType = Literal["response.output_item.done",]


class StreamEventsResponseOutputItemDoneTypedDict(TypedDict):
    r"""Event emitted when an output item is complete"""

    item: OutputItemsTypedDict
    r"""An output item from the response"""
    output_index: int
    sequence_number: int
    type: StreamEventsResponseOutputItemDoneType


class StreamEventsResponseOutputItemDone(BaseModel):
    r"""Event emitted when an output item is complete"""

    item: OutputItems
    r"""An output item from the response"""

    output_index: int

    sequence_number: int

    type: StreamEventsResponseOutputItemDoneType
