bag_info
Get dataset bag size and cache status to decide whether to cache before running experiments. Includes row counts, asset sizes, and cache path.
Instructions
Get comprehensive info about a dataset bag: size, contents, and cache status.
Combines the size estimate (row counts, asset sizes per table) with local cache status. Use this to decide whether to cache a bag before running an experiment.
Cache status values:
"not_cached": No local copy exists
"cached_metadata_only": Table data downloaded, assets not fetched
"cached_materialized": Fully downloaded and validated
"cached_incomplete": Was cached but some assets are missing
Args: dataset_rid: RID of the dataset to inspect. version: Semantic version to inspect (e.g., "1.0.0"). exclude_tables: Optional list of table names to exclude from FK path traversal.
Returns: JSON with size info (tables, total_rows, total_asset_bytes, total_asset_size) plus cache_status and cache_path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | Yes | ||
| dataset_rid | Yes | ||
| exclude_tables | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |