Skip to main content

ActionOutputs

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, ....

Attributes​

AttributeTypeDescription
pb2common_pb2.OutputsStores the underlying Protocol Buffer outputs object representing the raw action outputs.

Constructor​

Signature​

def ActionOutputs(
pb2: common_pb2.Outputs,
data: Tuple[Any, ...],
fields: List[str]| None = None
) -> None

Parameters​

NameTypeDescription
pb2common_pb2.OutputsThe protobuf representation of the outputs.
dataTuple[Any, ...]The tuple containing the output data values.
fields`List[str]None` = None

Methods​


named_outputs()​

@cached_property
def named_outputs(self) -> dict[str, Any]: ...

Constructs and returns a dictionary mapping output field names to their corresponding values.

Returns​

TypeDescription
dict[str, Any]A dictionary mapping output field names to their corresponding values.