Standard Processing#
This module provides basic processing functions.
ModifyResponse
modifies response of theContext.current_node
.
- class ModifyResponse(**data)[source]#
Bases:
BaseProcessing
,ABC
Modify the response function of the
Context.current_node
to 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 whenModifyResponse
is called.ctx (
Context
) – Current context.
- Return type:
Union
[Message
,dict
,str
]