create_data_structure
| Name | Type | Description |
|---|---|---|
data_structure | DataStructure | The data structure to create and validate. |
| Name | Description |
|---|---|
DataStructure | The validated data structure. |
Exception- If the data structure contains validation errors (e.g., multiple input columns, multiple expected output columns, or multiple context to evaluate columns).
sanitize_data_structure
- InputColumn: Only one input column is allowed
- ExpectedOutputColumn: Only one expected output column is allowed
- ContextToEvaluateColumn: Only one context to evaluate column is allowed
| Name | Type | Description |
|---|---|---|
data_structure | Optional[DataStructure] | The data structure to sanitize. |
Exception- If the data structure contains more than one input column, more than one expected output column, or more than one context to evaluate column. The exception includes the full data structure for debugging purposes.
validate_data_structure
| Name | Type | Description |
|---|---|---|
data_structure | Dict[str, Any] | The data structure to validate. |
against_data_structure | Dict[str, Any] | The reference data structure |
Exception- If the provided data structure contains any keys that are not present in the reference data structure. The exception includes both the provided keys and the expected keys for debugging.