Standard Processing#

This module provides basic processing functions.

class ModifyResponse(**data)[source]#

Bases: BaseProcessing, ABC

Modify the response function of the Context.current_node to call modified_response() instead.

abstract async modified_response(original_response, ctx)[source]#

A function that replaces response of the current node.

Parameters:
Return type:

Union[Message, dict, str]

async call(ctx)[source]#

Implement this to create a custom function.

Return type:

None