Skip to main content

model

Pydantic record for the dataset_scopes cache table (v1).

Classes​

DatasetScopeRecord​

class DatasetScopeRecord(**data: Any):

One file in a dataset's latest saved scope for a trial.

Attributes

  • project_id: The trial (project) the scope was saved for.
  • datasource_task_hash: The dataset's datasource-task hash.
  • file_path: A file in the dataset's selected file list, or "" for the one row an empty saved scope is stored as.
  • run_id: The run that saved the scope, if known.
  • saved_at: When the scope was saved, ISO 8601.
  • tags: Arbitrary flat metadata.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Variables​

  • static datasource_task_hash : str
  • static file_path : str
  • static model_config
  • static project_id : str
  • static run_id : str | None
  • static saved_at : str