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

from __future__ import annotations
from .reasoningsummarytext import ReasoningSummaryText, ReasoningSummaryTextTypedDict
from openrouter.types import BaseModel
from typing import Literal
from typing_extensions import TypedDict


ReasoningSummaryPartAddedEventType = Literal["response.reasoning_summary_part.added",]


class ReasoningSummaryPartAddedEventTypedDict(TypedDict):
    r"""Event emitted when a reasoning summary part is added"""

    item_id: str
    output_index: int
    part: ReasoningSummaryTextTypedDict
    sequence_number: int
    summary_index: int
    type: ReasoningSummaryPartAddedEventType


class ReasoningSummaryPartAddedEvent(BaseModel):
    r"""Event emitted when a reasoning summary part is added"""

    item_id: str

    output_index: int

    part: ReasoningSummaryText

    sequence_number: int

    summary_index: int

    type: ReasoningSummaryPartAddedEventType
