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

from __future__ import annotations
from .openairesponsesannotation import (
    OpenAIResponsesAnnotation,
    OpenAIResponsesAnnotationTypedDict,
)
from openrouter.types import BaseModel
from typing import Literal
from typing_extensions import TypedDict


AnnotationAddedEventType = Literal["response.output_text.annotation.added",]


class AnnotationAddedEventTypedDict(TypedDict):
    r"""Event emitted when a text annotation is added to output"""

    annotation: OpenAIResponsesAnnotationTypedDict
    annotation_index: int
    content_index: int
    item_id: str
    output_index: int
    sequence_number: int
    type: AnnotationAddedEventType


class AnnotationAddedEvent(BaseModel):
    r"""Event emitted when a text annotation is added to output"""

    annotation: OpenAIResponsesAnnotation

    annotation_index: int

    content_index: int

    item_id: str

    output_index: int

    sequence_number: int

    type: AnnotationAddedEventType
