Standard Processing#
This module provides basic processing functions.
ModifyResponsemodifies response of theContext.current_node.
- class ModifyResponse(**data)[source]#
Bases:
BaseProcessing,ABCModify the response function of the
Context.current_nodeto callmodified_response()instead.- abstract async modified_response(original_response, ctx)[source]#
A function that replaces response of the current node.
- Parameters:
original_response (
BaseResponse) – Response of the current node whenModifyResponseis called.ctx (
Context) – Current context.
- Return type:
Union[Message,dict,str]