Skip to main content

InputValue

This enum represents a value that can be either a Python object or a static JSON value. It serves as a container for handling input data from different sources within a unified interface.

Attributes

AttributeTypeDescription
PythonPy< PyAny >Stores a reference to a Python object for use within the input value context.
JsonJsonValue< 'static >Stores a static JSON value representing the input data.

Constructor

Signature

def Python(
value: Py< PyAny >
) - > [InputValue](inputvalue.md?sid=errors_line_error_inputvalue)

Parameters

NameTypeDescription
valuePy< PyAny >The Python object to be stored and processed as input.

Signature

def Json(
value: JsonValue< 'static >
) - > [InputValue](inputvalue.md?sid=errors_line_error_inputvalue)

Parameters

NameTypeDescription
valueJsonValue< 'static >The JSON data structure to be stored and processed as input.