2.6.0
ActionInputs
Package: flyte.remote
A class representing the inputs of an action. It is used to manage the inputs of a task and its state on the remote Union API.
ActionInputs extends from a UserDict and hence is accessible like a dictionary
Example Usage:
action = Action.get(...)
print(action.inputs())Output:
{
"x": ...,
"y": ...,
}Parameters
class ActionInputs(
pb2: common_pb2.Inputs,
data: Dict[str, Any],
)| Parameter | Type | Description |
|---|---|---|
pb2 |
common_pb2.Inputs |
|
data |
Dict[str, Any] |
Methods
| Method | Description |
|---|---|
to_dict() |
Convert the object to a JSON-serializable dictionary. |
to_json() |
Convert the object to a JSON string. |
to_dict()
def to_dict()Convert the object to a JSON-serializable dictionary.
Returns: dict: A dictionary representation of the object.
to_json()
def to_json()Convert the object to a JSON string.
Returns: str: A JSON string representation of the object.