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

NameTypeDescription
pb2common_pb2.OutputsThe protobuf representation of the action outputs.
dataTuple[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

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