Agent Run Metadata
Get Metadata
Update Metadata
Deep-merges new metadata into existing values.Metadata to merge. Nested dicts are merged recursively; non-dict values are overwritten.
Delete Metadata Keys
Keys to remove. Supports dot-delimited paths for nested keys (e.g.,
"config.model").(metadata_after_deletion, keys_not_found).
Discover Metadata Fields
Use these methods to inspect which metadata fields exist on agent runs in a collection, and to pull sample values for specific fields.List Available Fields
Returns the catalog of agent-run metadata fields with their names, types, and whether each field is parquet-indexed.When
True, the response also embeds sample values for each field (same
shape as Sample Field Values). For new code, prefer
calling get_metadata_field_samples for just the fields you care about — it
avoids paying the cost of sampling every field in the catalog.Returns
Sample Field Values
Fetch the top values (by frequency) for one or more metadata fields.Field names to sample. Each name may be:
- Fully qualified:
"metadata.foo.bar" - Bare:
"foo.bar"— treated as shorthand for"metadata.foo.bar" "tag"(the bare word)"label.<set>.<key>"
Returns
Mapping keyed by the original (un-normalized) field name you passed in. Each
value contains:
sample_values— list of{ "value": str, "count": int }entries, ordered by descending frequency.total_unique_values— total number of distinct values for the field.

