aip_sdk.Dimension
aip_sdk.Dimension(name: str, column: str, values: list[str], required: bool = False)
A dimension declaration for project stratification.
Dimensions define how datasets are sliced for coverage analysis and run-level score breakdowns.
Attributes
namestr: Human-readable dimension name (e.g., "intent", "customer_tier")columnstr: DataFrame column name to stratify byvalueslist[str]: Expected vocabulary of values for this dimensionrequiredbool: Whether all values must be present (enforced at validation time)
aip_sdk.Dimension.column
aip_sdk.Dimension.column: str
No docstring is defined in the source.
aip_sdk.Dimension.from_dict
aip_sdk.Dimension.from_dict(data: dict[str, Any]) -> Dimension
Create from API response format.
aip_sdk.Dimension.name
aip_sdk.Dimension.name: str
No docstring is defined in the source.
aip_sdk.Dimension.required
aip_sdk.Dimension.required: bool = False
No docstring is defined in the source.
aip_sdk.Dimension.to_dict
aip_sdk.Dimension.to_dict() -> dict[str, Any]
Convert to API request format.
aip_sdk.Dimension.values
aip_sdk.Dimension.values: list[str]
No docstring is defined in the source.