"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations from .openairesponsesannotation import ( OpenAIResponsesAnnotation, OpenAIResponsesAnnotationTypedDict, ) from openrouter.types import BaseModel import pydantic from typing import List, Literal, Optional from typing_extensions import Annotated, NotRequired, TypedDict ResponseOutputTextType = Literal["output_text",] class ResponseOutputTextTopLogprobTypedDict(TypedDict): token: str bytes_: List[float] logprob: float class ResponseOutputTextTopLogprob(BaseModel): token: str bytes_: Annotated[List[float], pydantic.Field(alias="bytes")] logprob: float class ResponseOutputTextLogprobTypedDict(TypedDict): token: str bytes_: List[float] logprob: float top_logprobs: List[ResponseOutputTextTopLogprobTypedDict] class ResponseOutputTextLogprob(BaseModel): token: str bytes_: Annotated[List[float], pydantic.Field(alias="bytes")] logprob: float top_logprobs: List[ResponseOutputTextTopLogprob] class ResponseOutputTextTypedDict(TypedDict): type: ResponseOutputTextType text: str annotations: NotRequired[List[OpenAIResponsesAnnotationTypedDict]] logprobs: NotRequired[List[ResponseOutputTextLogprobTypedDict]] class ResponseOutputText(BaseModel): type: ResponseOutputTextType text: str annotations: Optional[List[OpenAIResponsesAnnotation]] = None logprobs: Optional[List[ResponseOutputTextLogprob]] = None