Assertions and Errors
As shown in the example below, the element_wise_multiply
operation requires input data to be of type decimal
. However, the output of the add
operation, labeled as added_result
, is of type integer
. This creates a data type mismatch that needs to be addressed.

Understanding Graphbook Assertions
A Graphbook assertion is composed of two essential components on the backend:
- Terms: These are the variables that hold the data.
- Predicates: This is the remaining string that defines the criteria or conditions that the data must meet.
For a variable to be considered valid, the data it contains must satisfy the conditions specified by the assertion. If the data fails to meet these criteria, it is deemed invalid.
Assertion Example
Consider the assertion: {left_limit}_data_type_is_integer_or_decimal
. This assertion specifies that the data type of left_limit
is only valid if it is either an integer
or a decimal
value. To explore the entire set of assertions, please click here.