torchcell.verification.SourcedValue

class SourcedValue(*, value: Any, provenance: Provenance, quote: str, note: str | None = None)[source]

Bases: BaseModel

A hardcoded value plus the provenance that justifies it.

provenance.source_uri is interpreted as the path RELATIVE to <library_root>/<citation_key>/ (e.g. "si/si1.md"). citation_key and sha256 are required so the value is always auditable.

model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

source_path(library_root: str | Path) → Path[source]

Resolve the artifact path within the MinerU library.