agrag.loaders.corpus.types.SourceRef
SourceRef(uri:str, extension:str, byte_size:int | None = None, mime_type:str | None = None, modified_at:datetime | None = None) -> None
A locatable input, before any bytes are read.
Attributes:
- uri (
str) – The location of the source, as the caller gave it. - extension (
str) – The lowercased file extension, with its leading dot. - byte_size (
int | None) – The size of the source in bytes.Nonewhen the backend cannot cheaply stat the source. - mime_type (
str | None) – The detected MIME type, when the loader can detect one. - modified_at (
datetime | None) – The last-modified time of the source, when the backend reports it.
byte_size
byte_size: int | None = None
extension
extension: str
mime_type
mime_type: str | None = None
modified_at
modified_at: datetime | None = None
uri
uri: str