The page you navigated to () does not exist, so we brought you to the closest page to it.
You have switched from the to the variant of this site. There is no equivalent of . We have taken you to the closest page in the variant.
ActionOutputs
Package: flyte.remote
A class representing the outputs of an action. The outputs are by default represented as a Tuple. To access them,
you can simply read them as a tuple (assign to individual variables, use index to access) or you can use the
property named_outputs to retrieve a dictionary of outputs with keys that represent output names
which are usually auto-generated o0, o1, o2, o3, ....
Example Usage:
action = Action.get(...)
print(action.outputs())Output:
("val1", "val2", ...)OR
action = Action.get(...)
print(action.outputs().named_outputs)Output:
{"o0": "val1", "o1": "val2", ...}Parameters
class ActionOutputs(
pb2: common_pb2.Outputs,
data: Tuple[Any, ...],
fields: List[str] | None,
)| Parameter | Type | Description |
|---|---|---|
pb2 |
common_pb2.Outputs |
|
data |
Tuple[Any, ...] |
|
fields |
List[str] | None |
Properties
| Property | Type | Description |
|---|---|---|
named_outputs |
None |
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.