"""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


StreamEventsResponseOutputItemAddedType = Literal["response.output_item.added",]


class StreamEventsResponseOutputItemAddedTypedDict(TypedDict):
    r"""Event emitted when a new output item is added to the response"""

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


class StreamEventsResponseOutputItemAdded(BaseModel):
    r"""Event emitted when a new output item is added to the response"""

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

    output_index: int

    sequence_number: int

    type: StreamEventsResponseOutputItemAddedType
