Evaluator
Context manager
Last updated
Context manager
Last updated
Subclass of .
Main methods and properties
schema (): Wrapped Component.
logging_level (int, optional): . Defaults to ..
logging_handler (Optional[.], optional): Handler that will be used. If value equals to None, default will be created. Defaults to None.
fast_exit (bool, optional): If set to True, after first unhandled exeception execution will be terminated. Defaults to True.
memory_manager (Optional[], optional): Manages data, that can be accesed in evaluator scope. If equals to None, default memory manager will be created. Defaults to None.
name (Optional[str], optional): Name for identification. If equals to None, class name will be used. Defaults to None.
Get data from memory and set to register
identifiers (List[Union[str, Tuple[str, str]]]): Key/keys that will be used to access data in memory and for setting to register.
default (Dict[str, Any]): A map of values to be returned for each provided identifier if the identifier(s) are not found. If an identifier is not found and no default value is provided for it, an exception will be raised. Defaults to None.
delete (bool, optional): If equals to True, accessed data will be removed from memory. Defaults to False.
Returns:
Set data from register to memory
get_key (str): Key in register.
set_key (str): Key in memory.
Delete specified key from memory
identifier (str): Key for deletion.
Delete all keys from memory
Log messages
msg (Any): Message to log.
exc_info (bool, optional): Include exception info. Defaults to False.
Create evaluator in context of current evaluator
schema (Component): Component to wrapp.
child_name (str): Name of new evaluator.
Component Call
EvaluatorExecutionFailed: Reraised exception after logging to parent evaluator.
Run Component. This method should be called to run program.
input_data (Optional[Dict[str, Any]], optional): Data for processing. If equals to None, empty dict will be used for input_data. Defaults to None.
Dict[str, Any]: Result of execution.
register (): Destination.
: Result of execution.
register (): Source.
level (int): .
: New evaluator.
input_data (): Data for processing
evaluator (Optional[], optional): Evaluator in context of which component executed (parent ). Defaults to None.
: Result of executed component.
evaluator (Optional[], optional): Evaluator in context of which component executed (parent ). Defaults to None.