"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
# @generated-id: 15b75862a7bd

from __future__ import annotations
from mistralai.client.types import BaseModel
from typing_extensions import TypedDict


class OCRConfidenceScoreTypedDict(TypedDict):
    r"""Confidence score for a token or word in OCR output."""

    text: str
    r"""The word or text segment"""
    confidence: float
    r"""Confidence score (0-1)"""
    start_index: int
    r"""Start index of the text in the page markdown string"""


class OCRConfidenceScore(BaseModel):
    r"""Confidence score for a token or word in OCR output."""

    text: str
    r"""The word or text segment"""

    confidence: float
    r"""Confidence score (0-1)"""

    start_index: int
    r"""Start index of the text in the page markdown string"""
