# Generated by ariadne-codegen
# Source: ./documents

from typing import List, Optional

from pydantic import Field

from .base_model import BaseModel


class RetrieveSources(BaseModel):
    retrieve_sources: Optional["RetrieveSourcesRetrieveSources"] = Field(
        alias="retrieveSources"
    )


class RetrieveSourcesRetrieveSources(BaseModel):
    results: Optional[List[Optional["RetrieveSourcesRetrieveSourcesResults"]]]


class RetrieveSourcesRetrieveSourcesResults(BaseModel):
    content: Optional["RetrieveSourcesRetrieveSourcesResultsContent"]
    text: Optional[str]
    metadata: Optional[str]
    relevance: Optional[float]


class RetrieveSourcesRetrieveSourcesResultsContent(BaseModel):
    id: str


RetrieveSources.model_rebuild()
RetrieveSourcesRetrieveSources.model_rebuild()
RetrieveSourcesRetrieveSourcesResults.model_rebuild()
