Hi,
Is there a reason function_B cannot call function_A with the arguments that it receives? In other words, does this work?
def function_B(rule_args, callback,rei):
function_A(rule_args, callback, rei)
We have a demonstration of calling rules from native rule engine plugin rulebases in our training, but not within the same language. Perhaps worth adding to some documentation...
Alternatively, if it is possible for your use case, you could split out the relevant logic in function_A to a separate function and call that from function_B. Obviously, that might not be possible, but I just didn't want to leave that stone unturned :)
Hope that helps!