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 | The underlying Protocol Buffer message containing the raw output data from the action execution. |
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 representation of the action outputs. |
| data | Tuple[Any, ...] | The actual output values to be stored in the tuple. |
| fields | `List[str] | None` = None |
Methods
named_outputs()
@classmethod
def named_outputs() - > dict[str, Any]
Retrieves a dictionary of outputs where keys represent the output names and values represent the corresponding action results.
Returns
| Type | Description |
|---|---|
dict[str, Any] | A mapping of output field names to their respective values. |