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 | This attribute stores the protocol buffer representation of the outputs, which is used internally for data handling and serialization. |
Constructor
Signature
def ActionOutputs(
pb2: common_pb2.Outputs,
data: Tuple[Any, ...],
fields: List[str]| None = None
)
Parameters
| Name | Type | Description |
|---|---|---|
| pb2 | common_pb2.Outputs | The protobuf Outputs object. |
| data | Tuple[Any, ...] | The tuple of output values. |
| fields | `List[str] | None` = None |
Methods
named_outputs()
@classmethod
def named_outputs() - > dict[str, Any]
Retrieves a dictionary of outputs where keys are the output names (e.g., 'o0', 'o1') and values are the corresponding output data. This property provides a convenient way to access outputs by their assigned names.
Returns
| Type | Description |
|---|---|
dict[str, Any] | A dictionary mapping output names to their respective values. |