Default Extractors#
This module includes a pool of default extractors that you can use out of the box.
The default configuration for Superset dashboard leverages the data collected by the extractors below. In order to use the default charts, make sure that you include those functions in your pipeline. Detailed examples can be found in the tutorials section.
- async get_current_label(ctx, pipeline, info)[source]#
Extract the current label on each turn. This function is required for running the dashboard with the default configuration.
Note
Preferrably, it needs to be invoked as after_handler of the Actor service.
- async get_timing_before(ctx, _, info)[source]#
Extract the pipeline component’s start time. This function is required for running the dashboard with the default configuration.
The function leverages the framework_states field of the context to store results. As a result, the function output is cleared on every turn and does not get persisted to the context storage.
- async get_timing_after(ctx, _, info)[source]#
Extract the pipeline component’s finish time. This function is required for running the dashboard with the default configuration.
The function leverages the framework_states field of the context to store results. As a result, the function output is cleared on every turn and does not get persisted to the context storage.