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
| Attribute | Type | Description |
|---|---|---|
| pb2 | common_pb2.Outputs | Stores 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
| Name | Type | Description |
|---|---|---|
| pb2 | common_pb2.Outputs | The protobuf representation of the outputs. |
| data | Tuple[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
| Type | Description |
|---|---|
dict[str, Any] | A dictionary mapping output field names to their corresponding values. |