torchcell.metabolism.media.ComponentResolution

class ComponentResolution(*, component_name: str, role: ~torchcell.datamodels.schema.MediaComponentRole, outcome: ~typing.Literal['resolved', 'excluded_by_role', 'unresolved'], exchange_ids: list[str] = <factory>, match_channel: str | None = None, reason: str | None = None, candidates_tried: list[str] = <factory>)[source]

Bases: ModelStrict

What became of one ontology component on the way to a bound vector.

Exactly one of the three outcomes, recorded for EVERY component of the input medium.

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

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