class documentation

Represents the result of an operator execution.

Parameters
resultthe execution result
executoran Executor
erroran error traceback, if an error occurred
error_messagean error message, if an error occurred
validation_ctxa ValidationContext
delegatedwhether execution was delegated
outputs_schemaa JSON dict representing the output schema of the operator
Method __init__ Undocumented
Method raise_exceptions Raises an ExecutionError (only) if the operation failed.
Method to_exception Returns an ExecutionError representing a failed execution result.
Method to_json Returns a JSON dict representation of the result.
Instance Variable delegated Undocumented
Instance Variable error Undocumented
Instance Variable error_message Undocumented
Instance Variable executor Undocumented
Instance Variable outputs_schema Undocumented
Instance Variable result Undocumented
Instance Variable validation_ctx Undocumented
Property is_generator Whether the result is a generator or an async generator.
def __init__(self, result=None, executor=None, error=None, error_message=None, validation_ctx=None, delegated=False, outputs_schema=None): (source)

Undocumented

def raise_exceptions(self): (source)

Raises an ExecutionError (only) if the operation failed.

def to_exception(self): (source)

Returns an ExecutionError representing a failed execution result.

Returns
a ExecutionError, or None if the execution did not fail
def to_json(self): (source)

Returns a JSON dict representation of the result.

Returns
a JSON dict
delegated: False = (source)

Undocumented

Undocumented

error_message: None = (source)

Undocumented

executor: None = (source)

Undocumented

outputs_schema: None = (source)

Undocumented

Undocumented

validation_ctx: None = (source)

Undocumented

@property
is_generator = (source)

Whether the result is a generator or an async generator.