def is_action_execution_under_action_chain_context(liveaction):
    """
    The action execution is executed under action-chain context
    if it contains the chain key in its context dictionary.
    """
    return liveaction.context and "chain" in liveaction.context