nemo_eval.adapters.interceptors.endpoint_interceptor#

Module Contents#

Classes#

EndpointInterceptor

Intercepts requests and forwards them to a specified API endpoint.

API#

class nemo_eval.adapters.interceptors.endpoint_interceptor.EndpointInterceptor(api_url: str)[source]#

Bases: nemo_eval.adapters.interceptors.types.RequestInterceptor

Intercepts requests and forwards them to a specified API endpoint.

Initialization

api_url: str#

None

intercept_request(
ar: nemo_eval.adapters.interceptors.types.AdapterRequest,
) nemo_eval.adapters.interceptors.types.AdapterResponse[source]#