nemo_evaluator.adapters.interceptors.progress_tracking_interceptor
#
Progress tracking interceptor that tracks number of samples processed via webhook.
Module Contents#
Classes#
Progress tracking via external webhook. |
API#
- class nemo_evaluator.adapters.interceptors.progress_tracking_interceptor.ProgressTrackingInterceptor(params: Params)#
Bases:
nemo_evaluator.adapters.types.ResponseInterceptor
,nemo_evaluator.adapters.types.PostEvalHook
Progress tracking via external webhook.
Initialization
Initialize the progress tracking interceptor.
Args: params: Configuration parameters
- class Params(/, **data: Any)#
Bases:
nemo_evaluator.logging.BaseLoggingParams
Configuration parameters for progress tracking interceptor.
Initialization
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.- output_dir: str | None#
‘Field(…)’
- progress_tracking_interval: int#
‘Field(…)’
- progress_tracking_url: str | None#
‘Field(…)’
- request_method: str#
‘Field(…)’
- intercept_response(
- ar: nemo_evaluator.adapters.types.AdapterResponse,
- context: nemo_evaluator.adapters.types.AdapterGlobalContext,
Function that will be called by
AdapterServer
on the way downstream.Args: resp: The adapter response to intercept context: Global context containing server-level configuration
- post_eval_hook( ) None #
Function that will be called by the evaluation system after evaluation completes.
Args: context: Global context containing server-level configuration and evaluation results
Ex.: This is used for report generation, cleanup, metrics collection, etc.
- progress_filepath: pathlib.Path | None#
None
- progress_tracking_interval: int#
None
- progress_tracking_url: str | None#
None
- request_method: str#
None