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

from __future__ import annotations
from openrouter.types import BaseModel
import pydantic
from typing import List, Optional
from typing_extensions import Annotated, NotRequired, TypedDict


class StreamLogprobTopLogprobTypedDict(TypedDict):
    r"""Alternative token with its log probability"""

    bytes_: NotRequired[List[int]]
    logprob: NotRequired[float]
    token: NotRequired[str]


class StreamLogprobTopLogprob(BaseModel):
    r"""Alternative token with its log probability"""

    bytes_: Annotated[Optional[List[int]], pydantic.Field(alias="bytes")] = None

    logprob: Optional[float] = None

    token: Optional[str] = None
