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


OpenResponsesCreatedEventType = Literal["response.created",]


class OpenResponsesCreatedEventTypedDict(TypedDict):
    r"""Event emitted when a response is created"""

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


class OpenResponsesCreatedEvent(BaseModel):
    r"""Event emitted when a response is created"""

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

    sequence_number: int

    type: OpenResponsesCreatedEventType
