Component
The base class for the main components of UTCA programs
Last updated
The base class for the main components of UTCA programs
Last updated
This class contains basic methods for executing components and chaining them together.
Main methods and properties
name (Optional[str], optional): Name for identification. If equals to None, class name will be used. Defaults to None.
Create ExecutionSchema from two components
component (): Component that will be added with this component to ExecutionSchema.
Component Call
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.
name (str): New name.
Name for identification. Usefull for logging and debugging.
: Result of combination of two components. When schema will be called, this component will be executed first.
input_data (): Data for processing
evaluator (Optional[], optional): Evaluator in context of which component executed. If equals to None, default evaluator will be created. Defaults to None.
: Result of executed component.
evaluator (Optional[], optional): Evaluator in context of which component executed. If equals to None, default evaluator will be created. Defaults to None.
: self