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

from __future__ import annotations
from friendli.core.types import BaseModel
import pydantic
from typing_extensions import Annotated, TypedDict


class KnowledgeRetrievedChunkTypedDict(TypedDict):
    """Knowledge retrieved chunk."""

    text: str
    "Retrieved text matching the search query."
    score: float
    "Numerical relevance score of the retrieved result."
    content_chunk_id: str
    "ID of specific text segment."
    content_id: str
    "ID of content in knowledge-base."


class KnowledgeRetrievedChunk(BaseModel):
    """Knowledge retrieved chunk."""

    text: str
    "Retrieved text matching the search query."
    score: float
    "Numerical relevance score of the retrieved result."
    content_chunk_id: Annotated[str, pydantic.Field(alias="contentChunkId")]
    "ID of specific text segment."
    content_id: Annotated[str, pydantic.Field(alias="contentId")]
    "ID of content in knowledge-base."
