MessageTransformapply_transform
method
that takes a list of messages and returns the transformed list.
Parameters:
Name | Description |
---|---|
*args | |
**kwargs |
Name | Description |
---|---|
messages | A list of dictionaries representing messages. Type: list[dict[str, typing.Any]] |
Type | Description |
---|---|
list[dict[str, typing.Any]] | A new list of dictionaries containing the transformed messages. |
Name | Description |
---|---|
pre_transform_messages | A list of dictionaries representing messages before the transformation. Type: list[dict[str, typing.Any]] |
post_transform_messages | A list of dictionaries representig messages after the transformation. Type: list[dict[str, typing.Any]] |
Type | Description |
---|---|
tuple[str, bool] | A tuple with a string with the logs and a flag indicating whether the transformation had an effect or not. |