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

from __future__ import annotations
from .openresponsesresult import OpenResponsesResult, OpenResponsesResultTypedDict
from openrouter.types import BaseModel
from typing import Literal
from typing_extensions import TypedDict


StreamEventsResponseCompletedType = Literal["response.completed",]


class StreamEventsResponseCompletedTypedDict(TypedDict):
    r"""Event emitted when a response has completed successfully"""

    response: OpenResponsesResultTypedDict
    r"""Complete non-streaming response from the Responses API"""
    sequence_number: int
    type: StreamEventsResponseCompletedType


class StreamEventsResponseCompleted(BaseModel):
    r"""Event emitted when a response has completed successfully"""

    response: OpenResponsesResult
    r"""Complete non-streaming response from the Responses API"""

    sequence_number: int

    type: StreamEventsResponseCompletedType
